Re: A5: hypotheticals outside regexen

2002-06-06 Thread Damian Conway
Page 13 tells use about Clet decls. But it also says that the topic must be a regex. Whilst it explains that this isn't really a problem, I'm not sure that it justifies it. So perhaps someone can clarify why this (hypothetical) code in not a reasonable generalization: Because Perl code

Re: A5: hypotheticals outside regexen

2002-06-06 Thread Damian Conway
You have Ino idea how often that would have been useful. It's a great exception safety mechanism... like C++'s resource aquisition is initialization thingy, but without having to write a class for every variable. Have you already forgotten KEEP and UNDO (that we introduced in A4/E4):

A5: hypotheticals outside regexen

2002-06-05 Thread David Whipp
Page 13 tells use about Clet decls. But it also says that the topic must be a regex. Whilst it explains that this isn't really a problem, I'm not sure that it justifies it. So perhaps someone can clarify why this (hypothetical) code in not a reasonable generalization: our $foo = 0; sub