Hi Christophe,

> How can I know x is a MyClass object ?
> Is it even a good question ?

Yes. 'isa' for that:

   http://software-lab.de/doc/refI.html#isa


> # In the definition:
> (class +MyClass)
> ..
> (dm 'isamyclass> () T)
> 
> # The test:
> (try 'isamyclass> x)

This is not so useful, because it will not work if 'x' is a number.

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to