develooper Front page | perl.perl5.porters | Postings from May 2023

Re: Limitations of Attributes

Thread Previous | Thread Next
Branislav Zahradník
May 6, 2023 05:41
Re: Limitations of Attributes
Message ID:
> A quick note on that part - the newly-added `method` keyword doesn't
> allow you to rename the invocant variable at all. You just get `$self`,
> so there's no such syntax ambiguity here to worry about.
If ever supported, it should be part of `class` syntax and not method
Every method of same class should use same name for `$self`

> --
> Paul "LeoNerd" Evans
>      |
>  |

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About