[6464] in s-news-athena

home help back first fref pref prev next nref lref last post

How to free the module which loaded by dyn.load?

daemon@ATHENA.MIT.EDU (song@iso.wwz.unibas.ch)
Mon Feb 20 10:03:02 1995

To: s-news@utstat.toronto.edu
Date: Mon, 20 Feb 95 15:29:48 +0100
From: song@iso.wwz.unibas.ch


Do I have to free the module which loaded using command dyn.load after the .C 
command? 
What is the behavier of S+, if there are two modules built in c loaded, and 
they both call a certain function built in C share the same name, but with 
different code.

Example:
test1.c:

test1()
{
 func_with_the_same_name();
}
func_with_the_same_name()
{
 printf ( "here is func_with_the_same_name in test1.\n" );
}


test2.c:

test2()
{
 func_with_the_same_name();
}
func_with_the_same_name()
{
 printf ( "here is func_with_the_same_name in test2.\n" );
}


S+:
dyn.load("test1.o")
.C("test1")
dyn.load("test2.0")
.C("test2")


Thanks in advance.
Song
song@iso.wwz.unibas.ch

home help back first fref pref prev next nref lref last post