slang-users mailing list

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

[slang-users] SLang_restart - clear globals?


Does SLang_restart(1) clear global variables? functions defined in the
SLang environment? Such as:

void my_function()
{
  SLang_load_file("hi.sl");
  
  // ---- hi.sl:
  variable name = "Jeremy";
  define say_hi(how)
  {
    print(how+" "+name);
  }
  SLang_restart(1);
}

... will the function say_hi() and variable name be available next time
I call load_file? What about if it's a different file, such as bye.sl?
Will name and say_hi be available?

Thanks,

----
jeremy <jc@xxxxxxxxxx>

The idle man does not know what it is to enjoy rest.

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


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