Re: concat

Aron Bierbaum <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
Works great, one more question. Is there an easy way to overload the
index operator? For example if I have an object that I want to expose
a table interface to can I do something like the following in Lua?

val0 = my_obj["key0"]

Thanks,
Aron

On Wed, May 27, 2009 at 4:42 PM, Daniel Wallin <[email protected]> wrote:
> Aron Bierbaum wrote:
>> Is there a way to support the __concat operator using Luabind? I have
>> exposed the tostring operator, but I can't find anything about concat.
>
> AFAIK:
>
>  class_<X>("X")
>    .def("__concat", ...)
>
> should work.
>
> --
> Daniel Wallin
> BoostPro Computing
> http://www.boostpro.com
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> luabind-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/luabind-user
>

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
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.