lua-users home
lua-l archive

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


It was just an example to illustrate the concept. The principle was just to extend lua syntax a little to allow even more different semantics that those you can implement today.

-----Message d'origine-----
De : lua-bounces@bazar2.conectiva.com.br [mailto:lua-bounces@bazar2.conectiva.com.br] De la part de Mildred
Envoyé : 30 mai 2006 13:06
À : lua@bazar2.conectiva.com.br
Objet : Re: [RFC] Local function call


Why don't you use a syntax like that ?

foo = class {
	-- class definition
}

and

local bar = class{
	-- class definition
}

-- 
Mildred       <xmpp:mildred@jabber.fr> <http://mildred632.free.fr/>
Clef GPG :    <hkp://pgp.mit.edu> ou <http://mildred632.free.fr/gpg_key>
Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B]