- Subject: Re: [slang-users] How to unload a module
- From: Bernd Eggink <bernd.eggink@xxxxxxxxxx>
- Date: Fri, 29 Nov 2019 00:57:25 +0100
Am 28.11.2019 um 06:35 schrieb John E. Davis:
Keep in mind that there are different ways to load a file into the
interpreter. If you want to load the same file more than once, use
the evalfile function:
slsh> !echo 'print(10);' > foo.sl
slsh> () = evalfile("foo.sl");
John,
thanks, but unfortunately this doesn't work if the source contains type
declarations:
slsh> !echo "typedef struct { x,y } Point;">t.sl
slsh> .load ./t.sl
slsh> .load ./t.sl
Type name Point already exists
0
- Bernd
--
http://www.sudrala.de
_______________________________________________
For list information, visit <http://jedsoft.org/slang/mailinglists.html>.
[2019 date index]
[2019 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]