Small introspective program

steele at en.ecn.purdue.edu steele at en.ecn.purdue.edu
Thu Mar 14 01:17:56 AEST 1991


In article <1991Mar13.032422.9438 at cavebbs.gen.nz> clear at cavebbs.gen.nz (Charlie Lear) writes:
>In article <1991Mar12.050929.2870 at research.canon.oz.au> andy at research.canon.oz.au (Andy Newman) writes:
>>The smaller the better! In many interpreted BASIC's of years ago you could do:
>>	1 LIST
>>Which when RUN would produce:
>>	1 LIST
>>(Using a single digit line number to make it as small as possible).
>
>Sorry, your entry is disqualified through being too large. REAL BASICs used
>to be able to tokenise, and the winner is:
>	1 L.
>which when run would produce
> 	1 L.
>
>Lets see you do THAT in C!
>

You sure?  If the BASIC is tokenized, then L. will be expanded to LIST
in the source code listing, so that you'd get
	1 LIST
when run.  I have to admit, my only experience with tokenized basics is
the old 8-bit Ataris; do other basics leave the abbreviation?

Rich

-- 
-------------------------------------------------------------------------------
Richard Steele          |  INTERNET : steele at ecn.purdue.edu
Electrical Engineering  |  BITNET   : steele%ecn.purdue.edu at purccvm
Purdue University       |  UUCP     : {purdue, pur-ee}!ecn.purdue.edu!steele



More information about the Alt.sources mailing list