jed-users mailing list

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

problem with preparsing and #ifeval


Dear Jed users,

in connection with the "slang-2 proofing" I stumbled about a very tenacious
problem when using preprocessor directives like

#if (_slang_version > 2000)
message("SLang 2");
#else
message("Slang 1");
#endif

While without preparsing, everything works fine, the preparsed version leaves 
'^A' on the stack when evaluated during startup (via autoload). This leads
to nasty bugs in functions with optional arguments (it seems to set the
_NARGS wrong).


Also, trying to reproduce the behaviour with the above example in a file
"preparse-test.sl", calling 
  M-X byte_compile_file("preparse-test.sl", 0)
fails (sometimes) with a Stack Underflow.


The problem remains also, if #ifeval is used instead of #if ().
It doesnot occure for #ifexists.

Jed Version: 0.99.16
S-Lang Version: 1.4.9



Günter


-- 
G.Milde web.de

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


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