[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Re: sc-users Digest, Vol 4, Issue 59



Look at the helpfile for Class. Class.superclasses will return an Array of a 
class' superclasses. Class.dumpClassSubtree posts all subclasses of a class.

There are other convienence methods there that do similar things.

Note thse work on classes not instances, so SinOsc.superclasses or something 
like that.

S.

Quoting Umiachi <umiachi@xxxxxxxxx>:

> 
> --- blixton <blixton@xxxxxxxxxxxx> wrote:
> > I kinda backpedaled on my comment there. When I said
> > "What if you are 
> > not using Pbind?" and James answered
> > "What are you using then?" I had a feeling I was in
> > for a lesson on 
> > inheritance.  Better than waste his time. I'm gunna
> > read more.
> 
> 
> That brings up an interesting question (note, I'm
> nowhere near a mac or supercollider, but visiting
> relatives for the holidays): 
> 
> Is there a command for seeing the lineage of an
> object? I know everything is decended from the Object
> class, but how does one find out if x is related to y
> without designing it themselves?
> 
> I know, I know - a super easy question I might be able
> to answer if I could boot up a server and poke around.
> 
> 
> 
> =====
> "Freedom is a hallucination created by a pathological lack of Paranoia"
> 
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
> _______________________________________________
> sc-users mailing list
> sc-users@xxxxxxxxxxxxxxx
> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>