lua-users home
lua-l archive

Re: C function mapping strategy

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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

AltStyle によって変換されたページ (->オリジナル) /