- Subject: Re: [slang-users] try does not run require
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Sat, 10 Jun 2006 23:45:42 -0400
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]