home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!mouse
- From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
- Newsgroups: comp.lang.c
- Subject: Re: Another C palindrome puzzle
- Message-ID: <1992Dec23.172745.12170@thunder.mcrcim.mcgill.edu>
- Date: 23 Dec 92 17:27:45 GMT
- References: <9234503.17437@mulga.cs.mu.OZ.AU> <9235703.672@mulga.cs.mu.OZ.AU>
- Organization: McGill Research Centre for Intelligent Machines
- Lines: 27
-
- In article <9235703.672@mulga.cs.mu.OZ.AU>, fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON) writes:
- > manus@evolving.com (Manus Hand) writes:
-
- >> how about a palindromic "Hello world" program, with no comments,
- >> #if's, #ifdef's, <<<OR #define's!>>>
- > I liked your idea of using #pragma.
- > Here's my solution with no comments, #ifs, #ifdefs, or #defines.
-
- > #pragma amgarp#;""\
-
- Oops. What about the FrobozzCo compiler, which takes the "amgarp"
- pragma as a directive to place the author of the code into the world of
- _The World According to Garp_? (Unless you specify -mumble on the
- command line, in which case it simply takes the list of characters
- following on the #pragma line as characters to be deleted from the
- source, until another amgarp pragma is encountered.)
-
- Or older versions of gcc, which would give up on compiling and run rogue
- when they happened across a #pragma of any sort?
-
- Or is it enough that it work on some specific compiler? In that case,
- it should be significantly easier.
-
- der Mouse
-
- mouse@larry.mcrcim.mcgill.edu
-