I was trying to load a package apparently written for an earlier version of Pharo (Ratpack, from http://ss3.gemstone.com/ss/RatPack.html into Pharo 1.4).
There I got deprecation warnings about environmentAt:put:
not being supported for Project
.
The way to go, according to the documentation, is to use ProcessSpecificVariable
.
My questions are:
Thanks!
You can find discussion of PSS in issue tracker
Here is the snippet by Igor on how to use ProcessSpecificVariables :
Suppose MyProcessSpecificVar is a subclass of ProcessSpecificVariable.
Then you can do:
[ MyProcessSpecificVar value: foo. ] fork.
[ MyProcessSpecificVar value. ] fork.
etc, i.e. in same way as old implementation allows to do it.
But with new implementation , you can also use instances of it, so you don't have to create a new class per each process-specific var you might want to use:
mykey := MyProcessSpecificVar new.
[ mykey value ] fork.
[ mykey value: 10 ] fork.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With