Re: Function statement name syntax in Lua
bil til <[email protected]>
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <CAOnDXmFQS8VTOWDZVDKsimqtHQ01MTjst4H0oOvV1Um5v9cN4w@mail.gmail.com> |
> function t:a() return self end -- What are those "s" "e" "l" "f" ? ... maybe this needs an "additional learning step" for new Lua programmers. But I think especially for meta-tabels (typically e. g. some C programmed userdata) this is super-nice and very intuitive. (e. g. file f..., f:write(...) instead of file.write( f, ...) ). -- 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/CAOnDXmFQS8VTOWDZVDKsimqtHQ01MTjst4H0oOvV1Um5v9cN4w%40mail.gmail.com.