Re: require in another enviroment
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: require in another enviroment
- From: "Victor Bombi" <sonoro@...>
- Date: 2012年12月26日 13:20:32 +0100
You could use exactly the same loadstring/setfenv trick to load
sc.synthdefsc; then the supplied environment will contain your
assignments after execution, safely outside _G.
Yes. That was my intention and the trick is done in sc.synthdef,
but as I said the problem is:
If I dont do require"sc.synthdefsc" ( which is polluting _G)
then "blabla" is not getting variable=1234. That means that "blabla" cant
get it form
env and looks in _G instead.
victor