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

Re: [sc-users] SCLang crash!



On Mon, Aug 29, 2005 at 01:36:10AM +0200, Mario Lang wrote:
> (
> var tree;
> tree={|class|
>     ['tree-widget', ':tag', class.name.asString]
>     ++(Object.subclasses.collect{|sc|tree.value(sc.asClass)})
>     ++(Object.methods.collect{|m|[\item,m.name.asString]})
> };
> tree.value(UGen)
> )
> 
> Is it just me, or does this crash the language for you too?  Why!

stack overflow. calling tree recursively never terminates
because you have no terminal condition (you probably meant
class.subclasses).

<sk>