[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
Simon Cozens writes:
> >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?
Hmm, is not this what I proposed?
> This seems wasteful:
> If you disallow running arbitary code, you're restricting people.
You cannot run arbitrary code in an immediate sighandler. If you
delay execution, you are restricting people.
> If you allow, say, a `[code => sub { ... }]', everyone will use that
> instead of the other `instructions', out of laziness.
Their lazyness is nothing of our concern.
Ilya
- Follow-Ups from:
-
Larry Wall <larry@wall.org>
- References to:
-
simon@brecon.co.uk (Simon Cozens)
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]