logo       

Re: bug report: Exception.debug = true: msg#00263

audio.supercollider.devel

Subject: Re: bug report: Exception.debug = true


On Aug 29, 2004, at 1:41 PM, James Harkins wrote:

OK, I finally reproduced this one with a small code example:

e = (f: #{ "throwing error".postln; 1.blorg }).know_(true);
f = Environment.make({ ~f = #{ ~event.f } }).put(\event, e).know_(true);

You know why this code does not work, right?
When calling a function in a dictionary as if it were a method, the current environment is not changed to the dictionary. This is so you can have functions that refer to the current environment. If the current environment were changed you could not access the one in place where the function was called.


_______________________________________________
sc-dev mailing list
sc-dev-Ayv8T2snMLBt9CRQqspbbg@xxxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise