Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Classes and metaclasses
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Larry Wall  
View profile  
 More options Mar 15 2004, 11:48 pm
Newsgroups: perl.perl6.internals
From: la...@wall.org (Larry Wall)
Date: Mon, 15 Mar 2004 19:53:25 -0800
Local: Mon, Mar 15 2004 10:53 pm
Subject: Re: Classes and metaclasses
On Sun, Mar 14, 2004 at 02:32:44PM +0100, Leopold Toetsch wrote:

: Why? A ParrotClass is responsible for the method dispatch. The ParrotObject
: inherits that behavior.

In Perl 6 terms we'd prefer to say that ParrotClass "does" the
Dispatch role, and so does ParrotObject, but to call it inheritance
is misleading.  If you want to implement roles internally as a mild
form of inheritance, that's okay, but it *will* confuse people, and
will have to be explained repeatedly.

Basically, Perl 6 allows dispatch on anything that supports the
Dispatch role, whether that happens to be called a class or an object
or both.  The funny thing about ordinary classes is that they dispatch
ordinary method calls to themselves rather than to their metaclass.
It takes special syntax to "go meta".  (That might or might not map
well onto Ruby's Foo vs Foo' distinction.)

At least that's the story this week...

Larry


 
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.