Re: out of memory, even tho remembered nothing!

new topic     » goto parent     » topic index » view thread      » older message » newer message
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 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu