Dirk Reiners wrote: > Hi Marcus, > > Marcus Lindblom wrote: >>> The type and field information from OpenSG. I think we could expand it >>> a little bit and make it possible to have pyOpenSG discover the fc-based >>> class types at run-time and dynamically create interfaces for them. >>> Before delving into this though I would like to see the fc code >>> stabilize and hopefully merge ref_ptr and fc_ptr in some way (this would >>> make the binding *much* easier). >>> >> Couldn't you just use ref_ptr everywhere in ? :) .. or the 2.0 c-ptr's >> might ease the pain? >> > Those are not fully decided yet. I would want them, though. ;)
Yup. Is there anywhere where this idea is described? (I can maybe guess how it would work with aspects, but I'm not sure.) >> Hmm, I'm not sure it would work to create interface dynamically. It >> would make more sense to bind to user-functions rather than fields. >> Also, you need to call functions sometimes (window->render()) so there's >> no way around that (unless, as I said, those functions also were >> available reflectively.) >> > The problem I have with reflecting functions in a compiled language like > C++ is the signature. You can;t dynamically construct fundtion calls, so > you can't reall ymake it work generically. Not to talk about all the > additional work to do that. ;) What I've done for us is to bind c++-funcs into functions taking strings (values/constrefs are istream<< created and pointers are name-looked up in a table). Thus, calls can be created dynamically. There is some work, yes, but I've already part of it. :) Another matter is, how useful would it be to have member-reflections, if we are pythonifying everything anyway? (Hopefully, boost::python will evolve to boost::langbind and everyone will cheer. :) >> Sorry for being vague on promises though, but I'm getting paid to code, >> so I therefore must code stuff which someone will pay for. (Fancy >> frameworks seldom sells, working applications does .. getting enough >> time & money to be able to work long-term is hard.) >> > You're preaching to the choir, here. ;) :) /Marcus ------------------------------------------------------------------------- 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 _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
