- Subject: [slang-users] Bug in namespace allocation
- From: Joerg Sommer <joerg@xxxxxxxxxxxx>
- Date: Fri, 7 Oct 2005 11:50:56 +0000 (UTC)
Hi John,
#v+
$ cat /tmp/test.sl
% autoload("foo", "/tmp/test1.sl");
autoload("_test->bar", "/tmp/test1.sl");
% foo();
_test->bar();
$ cat /tmp/test1.sl
% try whether reevaluation works in SLANG 2
implements("_test");
message(current_namespace());
public define foo()
{
message("foo");
}
define bar()
{
message("bar");
}
$ slsh /tmp/test.sl
Namespace _test already exists
/tmp/test1.sl:2:<top-level>:Namespace Error
#v-
I've added a debug output to implements_ns() and saw that:
ns->name = " *** internal ns <1> *** "
name = "/tmp/test1.sl"
in the error case. I think the allocation of the namespace by autoload()
is the problem.
Bye, Jörg.
BTW: Do you have a Bug Tracking System?
--
Die meisten Menschen wollen lieber durch Lob ruiniert
als durch Kritik gerettet werden.
_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html
[2005 date index]
[2005 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]