Le 17/02/2012 21:32, Sebastian Kulesz a écrit :
> Hi. I'm getting an unusual error in a large project when trying to
> access a property of a module using an initializer to execute custom
> code in a large set of modules.
> The simplified code can be seen in the attached project. When
> executed, it complains about an unknown symbol, but in the stack it's
> listed.
> Is this a bug or an error in my code?
>
> Tanks!
>

An error in your code.

If you use Me in a static method like asd.me(), you will get a special 
internal value that represents the asd class, and that is converted to a 
'Class' object (as Class["asd"] would return) when being passed as an 
argument to the Main.Load() method.

And an instance of the 'Class' class does not have the public symbols of 
the 'asd' class, as you expected.

Regards,

-- 
Benoît Minisini

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to