Re: Two possible bugs in docs!

new topic     » goto parent     » topic index » view thread      » older message » newer message

>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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu