Re: Newbie question: testing if an object is a Struct of a certain kind

2008-10-29 Thread samppi
Okay, I understand. Thanks for the answer. On Oct 29, 12:01 pm, "Graham Fawcett" <[EMAIL PROTECTED]> wrote: > On Wed, Oct 29, 2008 at 2:29 PM, samppi <[EMAIL PROTECTED]> wrote: > > > Is there a way to test an object if it's a certain kind of struct? > > >  (defstruct person :name :age) > >  (def

Re: Newbie question: testing if an object is a Struct of a certain kind

2008-10-29 Thread Graham Fawcett
On Wed, Oct 29, 2008 at 2:29 PM, samppi <[EMAIL PROTECTED]> wrote: > > Is there a way to test an object if it's a certain kind of struct? > > (defstruct person :name :age) > (def president (struct person "Sam" 30)) > (struct? person president) ; true Hi, Defstruct doesn't define a new type in

Newbie question: testing if an object is a Struct of a certain kind

2008-10-29 Thread samppi
Is there a way to test an object if it's a certain kind of struct? (defstruct person :name :age) (def president (struct person "Sam" 30)) (struct? person president) ; true Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are s