Re: [RFC] Alternate approach to keeping convenience variables

Jim Blandy
2006-01-24T19:16:43Z

On 1/24/06, Daniel Jacobowitz <drow@false.org> wrote:
> > Right, but there's no way to test for that in the scripting language.
> > Your 'init-if-undefined' command has to be a primitive, implemented in
> > C. My argument was that having the variables always be present is
> > more convenient for user-defined commands.
>
> Andrew's point is that such a primitive was recently committed :-)

If you want your user-defined command to print a helpful error mesage,
you can't use that in an 'if'. If we had some operator like
$defined($foo), then that'd be different.