On Tuesday 18 January 2005 19:50, Sean Davis wrote:
> Yes, they are. I was merely running the suggested evals. No need to "RTFM"
> at me. I'm quite aware that type names are integers. I merely found the
> results of those tests... curious... for lack of a better word.

I doubt he was trying to be rude with his "RTFM"...

Anyway, the results do make sense. "me" and "E_TYPE" are false because objects 
and errors are always false, and the other two are true because they evaluate 
to nonzero integers.

> > >>  eval me:tell(OBJ ? "Objects exist" | "Objects don't exist")

By the way, a quicker way to check if a value is true or false is to use the 
little-known MOO truth operator. This operator is written as a double 
exclamation mark, so the eval becomes:

eval !!OBJ



;-)

#############################################################
This message is sent to you because you are subscribed to
  the mailing list <moo-cows@the-b.org>.
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>

Reply via email to