Re: Registries

Daniel Wallin <[email protected]>
Newsgroups gmane.comp.lib.boost.langbinding
Message-ID <5.1.0.14.0.20030713125017.03b47990__17730.3621815101$1059273079@student.umu.se>
At 20:05 2003-07-12, David Abrahams wrote:
>"Daniel Wallin" <[email protected]> writes:
>
> > In lua I think the most common usage is to just expose
> > types/functions directly to the interpreter from your app.
>
>I'm not sure what that means.  Don't they have to be bound into some
>module in order to be accessible from the interpreter?

No, lua doesn't share python's concept of modules.

> >> * It seems to me that it might be desirable to be able to use
> >> multiple language bindings in the same system (e.g. so people could
> >> write interacting Python and lua extensions) but I can't really see
> >> how that pans out.  I believe SWIG provides something like that,
> >> but I don't know much about it.  Perhaps Dave Beazley wouild like
> >> to comment?
> >
> > Would we automatically expose types/functions lua<->python?
>
>I don't know what that means.

I'm not so sure either. :) I was thinking that we could automatically forward
calls from one interpreter to the other, with some type of "bridge" functions.
But I have no idea on what type of interaction is of interest, so I'm hoping
someone with a little knowledge on this will comment.

> >> The only obvious opportunity for sharing I can see is in the
> >> registry of up-/down-casts (inheritance.[cpp/hpp]) used to traverse
> >> the inheritance hierarchy.  That would tend to dictate that the
> >> Boost.Python/.Luabind shared libs would link to a common shared lib
> >> containing that info.
> >
> > When using multiple language bindings in the same system, it's
> > probably desirable to keep the cast-graph's separated.
>
>Why?  I can't see any good reason for that.

You are right, there are no good reasons. I was confused.
All inheritance code can be shared directly.

How do you feel about making the conversion registry into
a template which is parameterized with a language descriptor?
We could share a lot of code by doing that.

---
Daniel Wallin



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.