[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: directly accesing c++ class members
- From: "Roger D. Vargas" <rogerdv@...>
- Date: Sat, 17 May 2003 15:22:37 -0400
El Sábado, 17 de Mayo de 2003 10:57 AM, Peter Shook escribió:
> Where there is a will, there is a way. But sometimes the way can be a
> little scarry, and a little dangerous.
>
> Here is an example in C:
>
> http://lua-users.org/wiki/BindingWithMembersAndMethods
>
> I didn't add this to the Lua 5.0 version of Luna yet because:
> a) I thought the OO purists would object
> b) no one asked for it
> c) it's a bit complicated and I wanted to keep Luna simple
> like Lenny's original design.
> d) the casting is a little dangerous if you are not careful
A couple of questions about this, can I access/modify even protected/private
members?
--
Roger D. Vargas
ICQ: 117641572
Linux user: 180787
* Tanto si piensas que puedes, como si piensas que no puedes, tienes razón *
Henry Ford