Re: Attributes

"'eugeny gladkih' via lua-l" <[email protected]> Thu, 28 May 2026 12:57:36 +0300
Newsgroups gmane.comp.lang.lua.general
Message-ID <[email protected]>

> On 26 May 2026, at 20:46, 'Martin Eden' via lua-l <[email protected]> wrote:
> 
> In the language plane Lua 5.4 added optional "attribute" element to
> variable declaration:
> 
>   stat ::= local attnamelist [‘=’ explist]
>   attnamelist ::= Name attrib {‘,’ Name attrib}
>   attrib ::= [‘<’ Name ‘>’]

added, but weird thing happened:

Lua 5.4.8  Copyright (C) 1994-2025 Lua.org, PUC-Rio
> local s<close,const>=io.open( 's', 'r' )
stdin:1: '>' expected near ','


this code seems to be very useful and friendly, but no way…

-- 
Yours sincerely, Eugeny.


-- 
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/F32959DB-A777-4649-9A61-C9F6820C9508%40drweb.com.