- Subject: Re: Weird problem with autoload...
- From: "John E. Davis" <davis>
- Date: Tue, 19 Mar 2002 12:37:18 -0500
Adam Byrtek <alpha@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>%if (BATCH==0) {
> autoload("foofunct","/home/alpha/foo.sl");
> insert("rc\n");
> foofunct();
>%}
[...]
>So why can't I have autoload() after 'if (BATCH==0)'? Seems strange to
>me. BTW I'm not running jed in batch mode! Moreover I moved out any
>extra extensions - only clean Debian install left.
The block of code in the braces first get compiled and then executed.
During the compilation stage, foofunct does not exist causing the
error that you see.
You can use this:
#ifeval BATCH==0
autoload("foofunct","/home/alpha/foo.sl");
insert("rc\n");
foofunct();
#endif
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2002 date index]
[2002 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]