slang-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] try does not run require


Jörg Sommer <joerg@xxxxxxxxxxxx> wrote:
>#v+
>% cat /tmp/test.sl
>try
>{
>    require("stkcheck");
>    enable_stack_check();
>}
>catch OpenError: {} % stkcheck not in path

This fails because slang makes no attempt to execute the code in the
statement until the statement is complete.  As a result,
enable_stack_check is referenced before it has been defined.

--John

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2006 date index] [2006 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]