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 Subclass op & subclass naming
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
 
Leopold Toetsch  
View profile  
 More options Mar 10 2005, 3:36 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Thu, 10 Mar 2005 09:36:11 +0100
Local: Thurs, Mar 10 2005 3:36 am
Subject: Re: [perl #33103] Subclass op & subclass naming

Simon Glover <parrotbug-follo...@parrotcode.org> wrote:
>  ... However, if we
>  want to create an anonymous subclass, using the 2-argument form of the
>  subclass op, then we hit a problem -- the code:
>      newclass P0, "City"
>      subclass P1, P0
>      newclass P2, "State"
>      subclass P3, P2
>      end
>  also fails, with the error:
>      Class  already registered!

Fixed. Internal anonymous names are now different.

>  ... , or change how subclass generates
>  classnames for anonymous subclasses? [*].
>  [*] Yes, I know this sounds odd, but we need to be able to distinguish
>  between an anonymous subclass of Foo and an anonymous subclass of Bar,
>  which implies it must have some kind of name beyond ''.

These are now "Foo\0\0anon_1" and "Bar\0\0anon_2".

leo


 
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.