home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18831 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.5 KB

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