Is it possible to do Multiple Assignment to environment variables?
I can do it with
( var a, b, c; #a, b, c = [1, 2, 3]; [a, b, c].postln; )
And I can do it with interpreter variables:
( #a, b, c = [1, 2, 3]; [a, b, c].postln; )
But it doesn’t work with environment variables:
( #~a, ~b, ~c = [1, 2, 3]; [~a, ~b, ~c].postln; )
I even tried this (not that I would ever want to write code like this):
( #currentEnvironment[\a], currentEnvironment[\b], currentEnvironment[\c] = [1, 2, 3]; [~a, ~b, ~c].postln; ) ( #currentEnvironment.at(\a), currentEnvironment.at(\b), currentEnvironment.at(\c) = [1, 2, 3]; [~a, ~b, ~c].postln; )
Is there some other way to do multiple assignment with environment variables? I looked through the docs and couldn’t find anything.