[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [ID 19991229.003] perl 5.005_03 core dumps -- singal
Ilya Zakharevich (lists.p5p):
>And if you do not like the interface, write a module which
>deparses
>
> sub { ++$count; return }
>
>to [ inc => \$count ]. Make assignment to $SIG autoload this module.
>If deparse fails, enable the delayed samantic.
I hate to suggest this, but wouldn't
$SIG{FOO} = sub { ++$count; return }
be easier for all concerned?
The even-numbered elements to your anon array there (not even a hash.
furrfu.) appear to be forming a `sub-language' - inc, set, and so on.
This seems wasteful:
If you disallow running arbitary code, you're restricting people.
If you allow, say, a `[code => sub { ... }]', everyone will use that
instead of the other `instructions', out of laziness.
Either way, you lose. Blech, in fact.
--
Generic Fortune.
- Follow-Ups from:
-
Sam Tregar <sam@tregar.com>
Ilya Zakharevich <ilya@math.ohio-state.edu>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]