Newsgroups: perl.perl6.internals
From: d...@sidhe.org (Dan Sugalski)
Date: Wed, 3 Mar 2004 12:39:08 -0500
Local: Wed, Mar 3 2004 12:39 pm
Subject: Initializers, finalizers, and fallbacks
Okay, here's a sketch of where I'm going with the initialization,
finalization, and fallback method locating. We need to do this because we're in the semi-unenviable position of supporting multiple languages that do this but that *don't* aggree on method names. So we can't depend on those. What I'm thinking of instead is to put properties on the class So, what we're going to do is introduce six properties: FALLBACK FALLBACK is the method we look for if we've redispatched up the whole CONSTRUCT is the method we call when we're building the object from BUILD is the method we call when we're building the object. We call FINALIZE is the method we call when we're destroying the object. It's DELETE is the equivalent of a C++ destructor. It's called on every CLEANUP is the method that's called when an object dies. It's a class What happens if a class hierarchy has a mix of CONSTRUCT and BUILD Also, these properties are on *names*, not method PMCs. We get a At the moment I think we're going to allow reparenting, but that's --------------------------------------"it's like this"------------------- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||