On Thursday 19 January 2006 19:50, Rob Kinyon wrote: > Nothing. Just like it's not a problem if Perl6 uses one of the > Ruby-specific PMCs for storage. In fact, the alternate $repr idea is > specifically to allow for the use of foreign datatypes as storage. > Luke's excellent example is to use a C-struct as your storage.
... but ... > Storage of what? What are you trying to do that you need to use an > object to store your attributes? Why aren't you just using the method > -that- object is using? I can't reconcile these two paragraphs. > No. My objection to bless() is BUILD() and CREATE(). There's already a > mechanism in the P6 OO system for specifying the internal > representation of the instance. This is Perl. The "there should be one obvious way to do it" ship, canoe, raft, and water wings have sailed, paddled, floated, and inflated. -- c