> > Are you suggesting this?
> > 
> > if($error) {
> > use visible '&croak';
> > require Carp;
> > import Carp: 'croak';
> > croak($error);
> > }
> 
> No - that would be pointless as well as error-prone.
> 
> My idea of "visible" is that it would make a lexically scoped thing
> accessible to an inner dynamic scope at run-time.
> 
> By default that would only apply to $_, but the mechanism should be
> generalisable to any name.

Yes. Regardless of the exact syntax, the idea
is presumably that the default way in which a
called sub can see/modify its caller's lexical
space is that it can see $_, can't see other
existing lexicals, and can add new lexicals.
Or something like that.

--
ralph

Reply via email to