Re: [Java] Function binding
John Moeller <[email protected]>
| Newsgroups | gmane.comp.lib.boost.langbinding |
|---|---|
| Message-ID | <[email protected]> |
John Moeller wrote: > So here are my questions: > > 1. Am I way off base, or did I miss something crucial in my assessment > of the situation? > > 2. Being far more experienced metaprogrammers than myself, do you think > that a fusion/mpl (or possibly a proto) solution might work? That is, > do you see any glaringly obvious problems with such a solution? > > 3. Given that such a solution would essentially be a *replacement* of > the invocation architecture currently in place, which of the following > approaches would work best for Boost? > > a. Make the solution generic enough to work with any binding, thus > having an alternative invocation architecture > b. Design a Java binding that would work independently of langbinding > c. Something else entirely > > I'll also do more research into the design of what's already in place; > when I read through the posts in this group the first time, I didn't > understand what was going on as much as I do now. Hm, after going over the archives, it seems that there was originally an initiative to have compile-time converter-generators, but this idea kind of fell away in favor of on-demand argument conversion. The compile-time approach or something similar is necessary to generate the native functions for a Java class; the arguments of the native function have to be declared -- that is, there isn't a "blob" of Java arguments that can be parsed at runtime. There are a couple of alternatives that I've thought about, but they aren't very attractive (at least to me). When we can get around to discussing it, I'd like to discuss the idea of maybe bringing the compile-time idea back. In the meantime, I'll see what I can do to sketch out something relating to the compile-time approach on my own using fusion/mpl. Thanks again for your attention. -- John Moeller [email protected] ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/