On Tue, Jan 01, 2008 at 04:26:29PM -0600, Patrick R. Michaud wrote: : 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?
In the context of normal Perl expressions, "fails" should always be read as "returns a Failure object". Which, of course, is immediately fatal under "use fatal". Otherwise it's lazily fatal. In fact, the places in the spec that say "returns a Failure object" should probably be rewritten to say "fails" to keep people from thinking that it means something other than "fails". Larry