lua-users home
lua-l archive

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


Where's the metadata going to be put, and what's going to look at it?

If it's just going to be discarded (like the const suggestion) then I'm with
Lisa - it's just asking for trouble and (mis/ab)use. Use structured comments
instead and deal with it outside of Lua proper.

If it's not, then I'd rather not pay the space and time costs needed to
handle it. Lua's lean and mean now, and (IMNAAHO) should stay that way.

P.
-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Timur Davidenko
Sent: 13 June 2006 15:31
To: Lua list
Subject: RE: Lua 5.1.1 has been frozen

I`ll second that,
Ability to add custom metadata (or some kind of attributes like in C#)
That can be later accessed from C api.
Somehow like this:

SomeTable = 
{
	<UIType=int,UIMinRange=0,UIMaxRange=100>
	a = 1,
	<UIType=int,UIMinRange=0,UIMaxRange=100>
	b = 2,
	<UIType=Object>
	objname = "test.obj",
}

- Timur

-----Original Message-----
From: King, Mike [mailto:MKing@klmicrowave.com] 
Sent: Monday, June 12, 2006 7:09 PM
To: Lua list
Subject: RE: Lua 5.1.1 has been frozen

>> No roadmap, published or otherwise. Do you have any special
requests??

Having the ability to add metadata to variables would be a nice
addition.  This would make it easier to do static analysis of lua
scripts.  

## return_type = number ##
function sin (a, b)
	...		
end

____
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message, which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. Crytek GmbH -
http://www.crytek.com