Re: What language will be used to write the first self aware program?



On 2006-03-30 10:04:56 -0500, mmcconnell17704@xxxxxxxxx said:

(do ((y 1971 (1+ y)))
((= y 1992))
(format t "~&I should have just had the guts to ask her out that day
in ~D." y))

Now someone write it with loop.



?
(loop for y from 1971 below 1992 do (format t "~&I should have just had the guts to ask her out that day
in ~D." y))

(assuming you meant for the line break to be there and it isn't just an artifact of your newsreader)

otherwise:

(loop for y from 1971 below 1992
do (format t
"~&I should have just had the guts to ask her out that day in ~D." y))
;; there's no line break in this ^^^ string

.



Relevant Pages