Re: out of memory, even tho remembered nothing!
- Posted by jimcbrown (admin) Oct 18, 2012
- 1770 views
eukat said...
But that's my point in that last post, testing for junk being a SEQUENCE doesn't work. EOF is defined as a CONSTANT, and those are defined as OBJECTs, ergo gets() does not return an ATOM.
I tried this, and it works for me. gets() returns an atom when it hits the end-of-file. The constant also passes the atom() test:
if atom(EOF) then puts(1, "true\n") else puts(1, "false\n") end if

