What are process dependent variables?

I tried to download a package explicitly written for an earlier version of Pharo (Ratpack, from http://ss3.gemstone.com/ss/RatPack.html in Pharo 1.4).

There I received warnings that environmentAt:put: not supported for Project .

According to the documentation, the method of using ProcessSpecificVariable .

My questions:

  • What are they?
  • How to use them?
  • How to transfer "obsolete" (obsolete) code to this new system?

Thanks!

+6
source share
1 answer

You can find a discussion of PSS in the error tracker

Here is Igor's snippet 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. just like the old implementation does.

But with the new implementation, you can also use instances of it, so you do not need to create a new class for each var type that you can use:

 mykey := MyProcessSpecificVar new. [ mykey value ] fork. [ mykey value: 10 ] fork. 
+4
source

All Articles