Search found 1 match

by bfulgham
Fri Sep 17, 2004 12:56 am
Forum: newLISP in the real world
Topic: Strange predicate behavior?
Replies: 1
Views: 2573

Strange predicate behavior?

If I do this:

Code: Select all

> (integer? 25)
true
So far, so good. but what about:

Code: Select all

> (integer? (sqrt 25))
nil
Huh? Am I doing something wrong? It's almost as though integer?
is evaluateing the sqrt function, rather than the result of the function.

Am I misunderstanding how newLisp evaluates data?