[slang-users] try does not run require

Jörg Sommer joerg at alea.gnuu.de
Sat Jun 10 16:37:45 EDT 2006


Hi,

what goes wrong here:

#v+
% cat /tmp/test.sl
try
{
    require("stkcheck");
    enable_stack_check();
}
catch OpenError: {} % stkcheck not in path

% slsh /tmp/test.sl
enable_stack_check is undefined
/tmp/test.sl:4:<top-level>:Undefined Name
zsh: exit 38    slsh /tmp/test.sl

% cat /tmp/test.sl
% try
{
    require("stkcheck");
    enable_stack_check();
}
% catch OpenError: {} % stkcheck not in path

% slsh /tmp/test.sl
%
#v-

Bye, Jörg.
-- 
Du kannst einem Schwein einen goldenen Ring durch die Nase ziehen,
deswegen bleibt es trozdem ein Schwein!




More information about the slang-users-l mailing list