in reply to a strong UNIVERSAL class

I think you're confusing Macintosh apples with Apple Macintoshes. OO and threads have little to do with each-other. Sure, there should be an easy way of having objects be thread-safe, but that's not a matter for UNIVERSAL, which provides _methods_ that are inherited by all objects. Thread-saftey is going to be more a matter for attributes, and the implementation of attributes is sepperate from the implementation of methods, I belive.

As for tie and overloads, they're likely to be completly different in perl6, almost to the point of unrecognizablity.

As for locks, I don't think there's a clean way of doing that, quite simply, without real support for that in the implementing code. There isn't a magic way to say :lockable, because that means different things for different implementations.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).