home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3096 < prev    next >
Encoding:
Internet Message Format  |  1991-03-19  |  1.2 KB

  1. From: diamond@jit345.swstokyo.dec.com (Norman Diamond)
  2. Newsgroups: alt.sources
  3. Subject: Re: Small introspective program
  4. Message-ID: <1991Mar18.011858.2544@tkou02.enet.dec.com>
  5. Date: 18 Mar 91 01:18:58 GMT
  6.  
  7. In article <1991Mar17.190756.29382@midway.uchicago.edu> goer@quads.uchicago.edu (Richard L. Goerwitz) writes:
  8. >>Isn't there a BASIC that uses "!" as a REM.
  9. >>Thus the "shortest" basic program would be "1!"; this is 1/3 to 1/2 as short
  10. >>as your suggested "1 L." (I would have ommited the space before submitting).
  11. >>I believe it is an old Tandy basic that does this and it did not expand the "!"
  12. >>to rem but left it as is; it did add a space though .....
  13. >
  14. >I don't see any source code here.  Please note the followup-to line
  15. >above.  Please, please, please - !
  16.  
  17. His source, though incorrect, is:
  18. 1!
  19.  
  20. Therefore I have changed the follow-up back to alt.sources.
  21.  
  22. Meanwhile, the reason his source is incorrect is that when you RUN it,
  23. it does not output a copy of itself.
  24.  
  25. I still prefer the correct program which is even two characters shorter
  26. than that.  (The source code is here, though it is difficult to see.)
  27. --
  28. Norman Diamond       diamond@tkov50.enet.dec.com
  29. If this were the company's opinion, I wouldn't be allowed to post it.
  30.