[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] [commit] switch inlined
On Oct 26, 2004, at 4:16 PM, James McCartney wrote:
switch is now inlined when possible. In order to be inlined, the
matching values must be literal Integers, Floats, Chars, Symbols
Also can be nil, false, true.
switch (x,
\a, { 123 },
\b, { 456 },
\c, { 789 },
{ 135 }
).postln;
Currently the following style is not inlined, but I will fix that:
switch (x)
{\a} { 123 }
{\b} { 456 }
{\c} { 789 }
{ 135 };
I will also fix the help file comments to the effect that it is not
inlined.
--
--- james mccartney james@xxxxxxxxxxxxxx <http://www.audiosynth.com>
SuperCollider - a real time audio synthesis programming language