From: Davide P. C. <dp...@un...> - 2005-09-10 16:11:47
|
> here are the file-scoped lexicals that are hanging around, > potentially causing similar problems. (That is, if they get > modified. If they're just being used as constants, then in most > cases we can replace them with 'use constant', or maybe use a real > constant class that uses a tied scalar.) Fortunately, most of it is > in WebworkWebservice, which isn't production code yet, or in PG, > where I'm not sure if it's a problem, since every problem has its > own environment. The ones in Parser and Value are almost all constants, plus a few that are computed and then retain their same value. There is one exception, however, which is is $Value::context, that is a reference to the current Context hash. (This is changed by the Context() function.) It would take some doing to convert that to a thread-safe mechanism, I think. Davide |