On Feb 26, 2008, at 8:15 AM, Dirk Reiners wrote:
Hi Shaping, Shaping wrote:In any descent Smalltalk, you can link a C library (CDECL or STDCALLcalling convention), and call the C routines like they were methods on aclass, where the class is an ExternalInterface (VW's term; it goes by other similar names in other Smalltalks) representing the C library. You'd build Smalltalk equivalents of the C++ classes, reify as muchstate as you need on the Smalltalk site, and pass these parameters into the C calls. The guts of the C++ methods, of course, would have to bein the C library. It's a lot of work.That sounds painful, indeed. :)I wanted to do this several years ago with Performer, but SGI don't give you the source with yourlicense. I even talked to their lawyer about it, and he said that SGIwas not interested in a Smalltalk port. Now they're just barely interested at all in anything Performer.Yeah, they're not doing software any more. Not enough business for them, I guess.OpenSGhas a reflective interface for data, which can make these things 'relatively' easy.I would like to know more about how this works.In a nutshell we have a FieldContainer base class that almost everything in the system is derived from. It has an interface that can tell you which fields an FC has, and it has access methods for those fields. It's not fully reflective in that it only talks about data, not methods, but it can help make certain things a lot more extensible. The code to this is 99% auto-generated, so if you need other interfaces you could probably add things to tit (that's going to get a little messy, though, so if you can stick to the existing interface). Take a look at FieldContainer and FieldContainerType. I'm not sure what the bestexample code for that would be. Allen? Gerrit?Yes. Please make him aware of my efforts, if he is not already.he's on this list, so I'm assuming he knows already. ;)
Allen is on vacation for the next several days, but I can probably answer any PyOpenSG questions that arise.
[snip] -Patrick -- Patrick L. Hartling Senior Software Engineer, Priority 5 http://www.priority5.com/
PGP.sig
Description: This is a digitally signed message part
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
