Attila Szegedi schrieb:
> In my opinion, the vast majority of these woes would be eliminated if  
> Class would have a map for custom values exposed to user code.  
> Something not unlike how ThreadLocal works for per-thread state  
> ("ClassLocal"?)

I think it very much depends on the implementation how much it can 
actually solve. Like my reference idea you have to keep some kind of 
handler. If not, then one key might be used by multiple parts... which 
would be bad.

I would say that my LinkedReference can simulate ClassLocal, only that 
my solution is not for classes alone. But even if it were for classes 
alone it would remove a big part of smelly code from Groovy.

bye Jochen

-- 
Jochen "blackdrag" Theodorou
The Groovy Project Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to