On Mon, Sep 03, 2007 at 10:49:57AM -0700, Allison Randal wrote:
> Both the old and new metamodels allow you to set and get an attribute 
> for a parent class that has the same name as an attribute in the child 
> class (Perl 6 and .NET both use this feature in different forms). The 
> old metamodel used this syntax:
> ...
>   # Set the parent's attribute 'j'
>   setattribute obj, "Foo\0j", $P4
> 
> I really don't like the "Foo\0j" syntax on the last line: [...]

I've never liked that particular syntax.

> We need a new syntax for the new metamodel. I'm thinking of:
> 
>   setattribute obj, ["Foo"], "j", $P4

+1

Pm

Reply via email to