[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C function mapping strategy
- From: Sam Roberts <sroberts@...>
- Date: Fri, 8 Sep 2006 10:03:57 -0700
On Thu, Sep 07, 2006 at 05:55:22PM -0700, Wesley Smith wrote:
> obj:method("draw") However, I'd like to have the more convenient
> notation of obj:draw() map to this instead. I'm sure there's a way to
> do this in Lua, I just can't seem to figure it out right now. Any
> ideas?
I figured out how to do something similar to this recently, and posted
my code to:
http://lua-users.org/wiki/ObjectProperties
It references a very useful chapter in the PIL, its worth reading
if you haven't already.
Cheers,
Sam