Re: Two possible bugs in docs!
- Posted by Daniel Berstein <daber at PAIR.COM> Jun 19, 1998
- 735 views
>2. I've noticed this for a while. This is the <atom> routine (but if this >is a bug, sequence and integer have the same bug). > line = gets(0) > if atom(line) then > puts(SCREEN, "end of file\n") > end if >As I understand it, atom returns a 0 or 1. So It's a wayt to test the data type of a variable. If atom(line) return 1 that means that lines IS an atom, else atom is a sequence. The same aplies to sequence... I'm not sure but I think you can also make use of your own created types for this purpose too. Regards, Daniel Berstein daber at pair.com