Re: Function statement name syntax in Lua
Jure Bagić <[email protected]>
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <aXwrtBWOmDHD5ufQ@archlinux> |
Can't we have: > function module.["this"]:[that](a, b, c) end which would be equivalent to: > module["this"][that] = function(self, a, b, c) end My general question is, why the index syntax in function statement names is not allowed? -- Jure -- 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/aXwrtBWOmDHD5ufQ%40archlinux.
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTilOnPIAgk+VLLAS+FaQJ4QtXaNQUCaXww5AAKCRCFaQJ4QtXa NX9oAP9cRkpUNAk6Z7hXfX11s0S5o8xZCkI8JNgvJ20bO+xotgD/fRp9nDeI8dLH 5lEOr31BUrKglYxRd+laCU3vtESMewo= =Wziy -----END PGP SIGNATURE-----