Re: $obj.meta.add_method('foo' => ???)

2005-08-10 Thread Autrijus Tang
gt; methods to the metaclass instance directly (which then exposes them to > the class and instances of the class). > > So, how should this look in Perl 6? I currently have a two > thoughts/suggestions/directions. > > 1) Anonymous methods/submethods > $obj

$obj.meta.add_method('foo' => ???)

2005-08-09 Thread Stevan Little
. The ideal approach IMO is to be able to do what the p5 MetaModel prototype does, and be able to add methods to the metaclass instance directly (which then exposes them to the class and instances of the class). So, how should this look in Perl 6? I currently have a two thoughts/suggestions/di