Is there anyway I could override how Perl resolve symbols, like for instance:

use mypackage;

$obj = new AnyObj();

where AnyObj type is not defined, but in XS I want to check the type database (UNO) and see if the type exists and create the new object type dynamically. Right now it will give compile error.

I have done this with methods, for instance the object AnyObj is defined but none of the methods are defined, so I use autoload mechanism so:

use mypackage;

$obj = new AnyObj();

$ret = $obj->callMyMethod();

In my XS, I can define an AUTOLOAD method and check the (UNO) object to see if the method exists and forward the call accordingly. If you want more details on how I do this, you can checkout the Perluno project (http://perluno.sourceforge.net/)

So the question is whether I could do something similar for object type.

Thanks
Bustamam



Reply via email to