Re: [NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-06 Thread Zhichu Chen
On Fri, Dec 5, 2008 at 8:05 AM, Arthur Reutenauer [EMAIL PROTECTED] wrote: but it might make more sense to look into metatables (i assume that you own the programming in lua book which explains that) I don't have one :(, I'll take a good at it later. You really should look into the book, it

Re: [NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-06 Thread Yue Wang
variables are only symbols in lua. they are reference to values (a place in the memory). On 12/5/08, Zhichu Chen [EMAIL PROTECTED] wrote: On Fri, Dec 5, 2008 at 8:05 AM, Arthur Reutenauer [EMAIL PROTECTED] wrote: but it might make more sense to look into metatables (i assume that you own

Re: [NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-04 Thread Hans Hagen
Zhichu Chen wrote: Hi, I'm learning to use luatex these days, one day actually. It's very interesting. Although reference manuals are available, I still don't know how to implement my designation. The thing is, I know there's a self variable for object-oriented programming, like

Re: [NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-04 Thread Zhichu Chen
On Thu, Dec 4, 2008 at 5:28 PM, Hans Hagen [EMAIL PROTECTED] wrote: Zhichu Chen wrote: Hi, I'm learning to use luatex these days, one day actually. It's very interesting. Although reference manuals are available, I still don't know how to implement my designation. The thing is, I know

Re: [NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-04 Thread Arthur Reutenauer
but it might make more sense to look into metatables (i assume that you own the programming in lua book which explains that) I don't have one :(, I'll take a good at it later. You really should look into the book, it has a whole chapter about object-oriented programming in Lua, and explains

[NTG-context] How to define such a function in lua? Sorry I don't have a name on it.

2008-12-03 Thread Zhichu Chen
Hi, I'm learning to use luatex these days, one day actually. It's very interesting. Although reference manuals are available, I still don't know how to implement my designation. The thing is, I know there's a self variable for object-oriented programming, like