/--- On Tue, Aug 29, 2000 at 06:33:41PM -0400, John Porter wrote:
|   $x = 0;
|
|   sub side {
|     $x = 1;
|  }
|
|   trans {
|     local $x;
|     side();
|     print "x=$x\n"; # should print 1
|     die;
|  }
|
|   print "x=$x\n"; # should print 0
|
| Personally, I'd rather see transaction-enabling requested on
| a per-variable basis.

I prefer that syntax too...

\---

Anyway, think  "local" and "trans"  as _different_, because  these are
for _different_  purposes, and  may the  programmer get  confused. For
example, he cannot use _real_ local variables in a transaction...

dLux
--
                        mailto:[EMAIL PROTECTED] icq:30329785

Reply via email to