develooper Front page | perl.perl6.compiler | Postings from January 2008

S03 - Str autodecrement

Thread Next
From:
Patrick R. Michaud
Date:
January 1, 2008 14:26
Subject:
S03 - Str autodecrement
Message ID:
20080101222629.GA5888@host.pmichaud.com
I'm working on S03 tests, and S03 says:

    Perl 6 also supports Str decrement with similar semantics, 
    simply by running the cycles the other direction. However,
    leftmost characters are never removed, and the decrement 
    fails when you reach a string like "aaa" or "000".

Is this "fails" as in "throws an Exception", "mutates into an
undef / Failure / Exception object", or something else entirely?

(Interested readers are encouraged to look at the "Exceptions" 
section of S04 for notes about failure and exceptions.)

Thanks!

Pm

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