Leopold Toetsch wrote:

No. The above "lowlevel" C<cos> isn't aware of C<base> nor of C<$_> and
nothing is autogenerated in Parrot. The C<cos> is something like:

 class __parrot_core::Float {
   multi sub cos(Float x) returns Float ...
 }

This is presumably inherited by C<class P6Num> (the Parrot PMC) and
bound to:

 multi sub *cos(Num $x) returns Num

at the Perl6 level.


That's all fine for the Parrot side of things, AFAICT.

But it doesn't answer my question about how Perl is going to autogenerate methods, as alluded to in A/S12, and Larry's previous post.

For now, I'm assuming that I can define just the base multi sub, without all the associated multi methods

-- Rod Adams



Reply via email to