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

Re: [sc-dev] [commit] switch inlined




On 27 Oct 2004, at 03:15, James McCartney wrote:


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.


I already updated them last night, but not for these latest changes.

S.