slang-users mailing list

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

[slang-users] wrong predeclaration makes function unaccessable


Hi,

is this an expected behaviour?

#v+
implements("gaga");

static define foo();			% wrong behaviour
% private define foo();			% correct behaviour

static define bla()
{
    foo();
}

private define foo()
{
    message("hello");
}

bla();
#v-

% slsh /tmp/slbug.sl
% slsh --version
slsh version 0.7.5-0
S-Lang Library Version: 2.0.6

I expect an hello.

Bye, Jörg.
-- 
Da würde ich auch lieber den Panzerführerschein machen als den MCSE.
Bringt mehr, dürfte das gleiche kosten und macht sicher mehr Spaß.
                                   Jens Dittmar in de.comp.security

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


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