develooper Front page | perl.perl5.porters | Postings from August 2013

Re: postfix dereference syntax

Thread Previous | Thread Next
From:
Aaron Priven
Date:
August 15, 2013 18:54
Subject:
Re: postfix dereference syntax
Message ID:
6465B312-4E5B-4CE0-8F42-766405443108@priven.com
On Aug 15, 2013, at 11:36 AM, Ricardo Signes <perl.p5p@rjbs.manxome.org> wrote:

> * Aaron Priven <aaron@priven.com> [2013-08-15T14:35:24]
>> The part I don't get is why it's necessary to specify the type of
>> dereferencing. 
> 
>  package Foo {
>    use overload  '@{}' => ...,
>                  '%{}' => ...,
>                  '${}' => ...;
>  }


Oh. Thank you, I wasn't considering that.

Is ->@* considered one big postfix operator, or is it infix -> operating on some kind of thing @* ?

If the latter, what exactly is @* ? It looks like a thing (obviously: like a punctuation variable), but is it really? Does it have an independent existence?

-- 
Aaron Priven, aaron@priven.com, www.priven.com/aaron


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