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

Re: fixing smartmatch just hard enough (and when, too)

Thread Previous | Thread Next
From:
Johan Vromans
Date:
August 23, 2012 05:10
Subject:
Re: fixing smartmatch just hard enough (and when, too)
Message ID:
m2393dhkru.fsf@phoenix.squirrel.nl
Damian Conway <damian@conway.org> writes:

> In any case, the following are still exactly the same problem and they
> certainly can't be resolved by the parser (or at compile-time):

Being unresolvable at compile time is exactly what makes these cases
not the same.

Compare:

  \1++;                 # compile time error
  *a = \1; $a++;        # run-time error

-- Johan

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