develooper Front page | perl.perl6.language | Postings from August 2006

Outlaw the "\ddd" notation

From:
Agent Zhang
Date:
August 15, 2006 04:16
Subject:
Outlaw the "\ddd" notation
Message ID:
c711ff240608150415m798e7818vfc9563b2e5bf34b5@mail.gmail.com
Hi, there~

Perl 5 uses the "\ddd" notation to index characters by octal numbers
(e.g. \187 and \13). Now that Perl 6 has the shiny new \o and \o[]
notations, we probably need to outlaw the legacy stuff explicitly in
S02 since we have the assumption that everything not mentioned in the
Synopses is assumed to stay the same as in Perl 5.

Therefore, in Perl 6, "\187" eq '187' will hold.

BTW, Audrey also thinks it's necessary to add a snippet to S02. :=)

Cheers,
Agent



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