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 Unexpected behaviour calling method of attribute
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
 
Chip Salzenberg  
View profile  
 More options Jun 12 2005, 7:19 am
Newsgroups: perl.perl6.internals
From: c...@pobox.com (Chip Salzenberg)
Date: Sun, 12 Jun 2005 13:19:12 +0200
Local: Sun, Jun 12 2005 7:19 am
Subject: Re: Unexpected behaviour calling method of attribute

On Sun, Jun 12, 2005 at 12:43:17PM +0200, Klaas-Jan Stol wrote:
> It seems that at the line, marked with "//***", not the __add method of
> b is called, but that A's __add method is called again.

Well, __add is a multimethod now, not a vtable function.  I'm not
surprised your code doesn't work as you expect, but I *am* surprised
that Parrot let you execute:

    $P1."__add"(left, right)

and didn't die or at least warn that "This does not mean what you
think it means".

Leo?
--
Chip Salzenberg <c...@pobox.com>


 
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.