RE: Returning arrays: Bug or misunderstanding?
by Jan Dubois other posts by this author
Dec 24 2004 10:25AM messages near this date
view in the new Beta List Site
Returning arrays: Bug or misunderstanding?
|
LogIn page and Counter and Database
FRAMEWORK I think this is a bug. I've seen this before, that "top-level" namespaces
need to be predeclared, whereas multi-level namespace are automatically
recognized.
Please file a bug for this, if there isn't one already. I'm currently offline
and only sync email once a day via a 52kb dialup line while I'm on vacation...
Cheers,
-Jan
On Thu, 23 Dec 2004, Henning Moeller-Nielsen wrote:
> Hi
>
> I ran into an error in a component I was building for test purposes.
> It appears that my lack of namespacing gave me my error and I am
> posting it here so other can know about it (and if it is a bug someone
> might tell me).
>
> Two modules:
>
> #test1.pm package test1; use strict;
>
> =for interface static test1[] GetAll(); =cut
>
> sub GetAll { return []; }
>
> and
>
> #test2.pm package DG::test2; use strict;
>
> =for interface static DG.test2[] GetAll(); =cut
>
> sub GetAll { return []; }
>
> Trying to compile the first module (test1.pm) gives me this error:
>
> plc --norunlib --target library --force test1.pm
>
> System.ApplicationException: Can't locate type test1[] at
> PerlRuntime.Interpreter.GetType(Int32 x, String klass) at
> PerlRuntime.Interpreter.typeof(Int32 x, Int32 klass_, Int32& e, Int32&
> rt)System.NullReferenceException: Object reference not set to an
> instance of an object.
>
> The other module (test2.pm) compiles without any problems.
>
> I am using ActivePerl 809 and the PDK 6.0.0.
>
> /Henning
_______________________________________________
Perl.NET mailing list
Perl.NET@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Henning Moeller-Nielsen
Jan Dubois
|