| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |
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 |