How to get atom's type?

22 views
Skip to first unread message

Eric Man

unread,
Mar 3, 2012, 10:53:40 PM3/3/12
to Programming Nu
In CL there is a "type-of" operator that returns whether an atom/list
is a number, boolean, a list, whatever.

In Nu you can call "class" on any object except functions and macros
and it would do the same thing. But it doesn't work for functions and
macros. When encountering (myFunction class) nu would treat class as
an argument.

Is there an equivalent to "type-of" in Nu where I can tell whether an
object is a function, macro, class instance, list?

Eric Man

unread,
Mar 3, 2012, 10:59:58 PM3/3/12
to program...@googlegroups.com
I now realise the answer lies in the "send" operator.
Reply all
Reply to author
Forward
0 new messages