Sorry for jumping into this discussion a bit late but I'm strongly
against yet another interface (iScriptModule). Why not simply extend
the existing iScript? That way there is no need for a new python
plugin either (which I strongly dislike).

Greetings,

On 2/15/06, Amir Taaki <[EMAIL PROTECTED]> wrote:
> so are we agreed on this then? -
>
>  - new iScriptModule object, supporting overloaded Call
>  - internal hash of iScriptModule objects in iScript, which can be looked up
> using FindLoadedModule(const char*)
>  - Do we break the current LoadModule for python? (as far as I'm aware the
> RunText should still work, because loading the modules should include them
> in global interpreter - TODO: check this out). If it does break behaviour,
> should I precede or make a new LoadModuleObject or something
>  - AddModuleLoadingPath function to update PYTHONPATH variable (takes a
> const char of a VFS path which is internally translated to absolute path)
>
>  Alternatively we could do away with the iScriptModule object, and store the
> raw python module objects (merely adding an extra modulename argument to
> iScript::Call)
>
>  Just thought I'd make some pointers in case we followed the 'alternative'
> method...
>
>  - no new iScriptModule object
>  - Same Call functions, but function names must have unique identifiers
> since they all exist in global scope
>  - LoadModule stays, but also get LoadScriptFile function
>  - no need for AddModuleLoadingPath since LoadScriptFile takes a path to
> python script
>
>  Amir Taaki
>


--
Project Manager of Crystal Space (http://www.crystalspace3d.org)
and CEL (http://cel.crystalspace3d.org)
Support Crystal Space. Donate at
https://sourceforge.net/donate/index.php?group_id=649


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to