[svn:perl6-synopsis] r14527 - doc/trunk/design/syn

2008-03-22 Thread larry
Author: larry
Date: Sat Mar 22 08:27:16 2008
New Revision: 14527

Modified:
   doc/trunk/design/syn/S05.pod

Log:
typos noticed by spinclad++


Modified: doc/trunk/design/syn/S05.pod
==
--- doc/trunk/design/syn/S05.pod(original)
+++ doc/trunk/design/syn/S05.podSat Mar 22 08:27:16 2008
@@ -1403,11 +1403,11 @@
 For instance, to match a number of abbreviations, you might write
 any of:
 
-s/ ^ G*n|enesis   $ /gen/  or
-s/ ^ Ex*odos  $ /ex/   or
-s/ ^ L*v|eviticus $ /lev/  or
-s/ ^ N*m|umbers   $ /num/  or
-s/ ^ D*t|euronomy $ /deut/ or
+s/ ^ G*n|enesis $ /gen/  or
+s/ ^ Ex*odus$ /ex/   or
+s/ ^ L*v|eviticus   $ /lev/  or
+s/ ^ N*m|umbers $ /num/  or
+s/ ^ D*t|euteronomy $ /deut/ or
 ...
 
 / (* foo bar baz ) /


Re: local $@ has an unwanted side effect

2008-03-22 Thread Aristotle Pagaltzis
* Rafael Garcia-Suarez [EMAIL PROTECTED] [2008-03-23 00:15]:
 I agree that the behaviour of $@ is very hard to modify right
 now in Perl 5. It has many complications and many people have
 worked around features or misfeatures in many ways. Introducing
 a parallel system might work.

What does PerlĀ 6 do in that respect? Maybe semantics could be
borrowed from there?

Regards,
-- 
Aristotle Pagaltzis // http://plasmasturm.org/


Re: local $@ has an unwanted side effect

2008-03-22 Thread Mark J. Reed
On Sat, Mar 22, 2008 at 8:00 PM, Aristotle Pagaltzis [EMAIL PROTECTED] wrote:
  What does Perl 6 do in that respect? Maybe semantics could be
  borrowed from there?

In which respect?

TTBOMK, both eval's role as pseudo-try and the $@ variable are gone
in Perl6, which has a real try instead.  If the eval'ed code fails,
the eval itself just fails right along with it; so there's no need for
a split along the lines of $! vs [EMAIL PROTECTED]

-- 
Mark J. Reed [EMAIL PROTECTED]