All~

On 10/13/05, Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote:
> Luke Palmer <[EMAIL PROTECTED]> wrote:
> > Okay, I seriously have to see an example of a submethod in use.
>
> Likewise.  As far as I've seen, submethods are a kludge wedged in for
> cases where you're actually calling all the way up the inheritence
> tree.  Personally, I've always thought a "cascade method" syntax would
> be better for that:
>
>     post method BUILD($foo, $bar) { ... }
>     pre method DESTROY() { ... }
>
> Cascade methods would be called (before|after) the indicated method in
> a superclass was called.  Their return values would probably be thrown
> away.  I think they might actually be a sort of syntactic sugar for
> inserting `call` in the method body, but that's an implementation
> detail, really...

I have always wondered about the absence of these.  CLOS has them and
they look quite useful.  Was it an intentionaly decision to omit this
type of multi method?

Matt
--
"Computer Science is merely the post-Turing Decline of Formal Systems Theory."
-Stan Kelly-Bootle, The Devil's DP Dictionary

Reply via email to