On Tue, 28 Oct 2003, Luke Palmer wrote: > > Object Instantiation > > Dan had a moment of clarity and declared that the Parrot Way to > > instantiate an object in class Foo will be: > > > > new P5, .Foo > > > > All we need now is a working implementation. And, apparently, knowing > > what class a class is a member of might be handy, but Dan's punting on > > ("ignoring the heck out of") that one. > > (Yeah, I read the thread, but just thought of this now) > > So classes will be integers? Fair enough, as there's just as many of > those as there are memory locations.
No, classes are identified by integer. They may or may not also have names. > I do worry about some long-running daemon that uses anonymous classes > heavily. It's possible that after quite some time, we'd run out of > integers, even when there are far fewer than 4 billion classes in > current existence. That's going to take a pretty long time, even with the JIT. I'm not particularly worried about it, and we can deal with it when it happens. Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk