develooper Front page | perl.perl6.users | Postings from June 2018

Re: mixin syntax: does vs but

Thread Previous | Thread Next
From:
JJ Merelo
Date:
June 12, 2018 19:05
Subject:
Re: mixin syntax: does vs but
Message ID:
CAJoLtgdrDzoHNc3Bf-MB_nLp5a-qkUu6eWWk7N1kk28K6srE8Q@mail.gmail.com
El mar., 12 jun. 2018 a las 21:01, Brandon Allbery (<allbery.b@gmail.com>)
escribió:

> .WHAT is a "macro"/shorthand, which is why it's uppercase. There's a
> metamodel (the real meaning of the ^) version of it as well.
>

Right. From here: https://docs.perl6.org/language/operators#postfix_.^

    ^method calls method on $invocant's metaclass. It desugars to
$invocant.HOW.method($invocant,
...)

(HOW means Higher Order Workings and it effectively returns the metaclass
for every kind of object: ClassHOW and so on).

JJ

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About