On Jan 13, 2007, at 4:23 PM, Pablo Martin wrote:
> I have been working on a solution to be able to access cspace get/set
> methods as language specific accessors (in my case python).
> So far together with Christopher Fraser i have made an analyzer that
> finds all such methods and inferes properties, it has been under  
> testing
> for quite some time now (several months) and i think it is already
> production ready (it shouldnt break any of older interface and most
> get/set methods get wrapped as expected).
> Thing is there are two approaches how this can be used, either by
> generating appropiate swig interface files (that also other languages
> could use), or by generating a pure python module that introduces the
> new syntax by importing it (like import csproperties).
> The first approach (generating additional swig interface files) would
> require some changes in cs build system so the generator is run before
> swig, and can be considered more invasive. This approach could be a  
> bit
> more efficient although i havent yet got to profile both approaches.
> Second approach (generating pure python module with all properties) is
> non intrusive to crystalspace meaning the properties modules can be
> generated at any time using the generator and be used. Of course it
> would be nice also to have crystalspace build system aware of this so
> the modules can be generated, but its not a hard requirement.
> My question would be what approach do people think is better? I  
> think i
> slightly prefer the first method as it doesnt require an additional
> module and provides totally self contained bindings (ie, user would  
> not
> have to be aware of the properties modules to use them), but right now
> im not totally sure.

I also would go with the first approach. An additional benefit of the  
first approach is that, once the global Jam rule(s) have been updated  
to support this, all projects which inherit CS's build system can get  
the behavior for free.

-- ES


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to