On Fri, 2004-04-23 at 04:25, Aldo Calpini wrote:

>     class MyClass {
>         has LethalWeapon $.dispatcher;
>         method meta { say "$_ is doing meta!" }
>     }
> 
> both of them would make my class pretty useless, I think, since it could
> not (correctly, at least) dispatch methods anymore. and I won't be able
> to access metadata.

It's a fine point... in the past, P5 and P6 have up-cased such
constructs in order to warn of their semi-keywordishness (e.g. DESTROY
or BUILD). I'm wondering why Larry chose to leave dispatcher and meta
lower in this case.

However, in existing CPAN modules that I happen to have in my cache at
the moment:

        $ grep -ri 'sub meta' .
        ./Convert-ASN1-0.18/inc/Module/Install/Metadata.pm:sub Meta { shift }
        $ grep -ri 'sub dispa' .
        ./Module-Build-0.23/lib/Module/Build/Base.pm:sub dispatch {
        ./Module-Build-0.23/lib/Module/Build/Platform/MacOS.pm:sub dispatch {
        ./Module-Build-0.23/blib/lib/Module/Build/Platform/MacOS.pm:sub dispatch {
        ./Module-Build-0.23/blib/lib/Module/Build/Base.pm:sub dispatch {

So it's not THAT bad.

Good catch.

-- 
Aaron Sherman <[EMAIL PROTECTED]>
Senior Systems Engineer and Toolsmith
"It's the sound of a satellite saying, 'get me down!'" -Shriekback


Reply via email to