RE: [code-review] Re: Lingua::Phonology
"Hodges, Paul" <Paul.Hodges-zv7RHi0Am8a1Z/[email protected]> Thu, 13 Nov 2003 11:42:44 -0600
| Newsgroups | gmane.comp.lang.perl.code-review-ladder |
|---|---|
| Message-ID | <9C375DDD9B669243A2D78FCD607E894003E4FCF4@bremo-jg> |
> Mark Dominus:
> > $self->{SYMBOLS} = new Lingua::Phonology::Symbols $self->{FEATURES};
> > might be interpreted as
> > $self->{SYMBOLS} = Lingua::Phonology::Symbols->new($self->{FEATURES});
> > which is usually what you intended, but it might also be interpreted as
> > $self->{SYMBOLS} = new(Lingua::Phonology::Symbols($self->{FEATURES}));
>
> For a more annoying example, see
> http://blog.simon-cozens.org/bryar.cgi/id_6416
> which caught me out in one of my modules.
>
> The indirect object syntax was a horrific mistake.
O Lord! And here I was thinking I knew what I was doing. How have I
consistently missed this topic on the boards for so long? Geez, this is too
scary!
So from the above link, what is it that is different? How the hell can order
of definition change the behavior? This is nutz!
*****
"The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers.61"