lua-users home
lua-l archive

Re: LUA Vs Javascript

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


On Jun 30, 2008, at 2:09 PM, Stephen Kellett wrote:
I'm thinking about the cases for folks writing classes etc.
There are no 'classes' in Lua. Just tables. And functions.
Lua, by itself, is a small, well rounded language. No class hierarchy(ies). No libraries. No batteries. Only the bare minimum.
This is not a bug. It's a feature.
Its clear there are cases where a sensible autogenerated name isn't
going to be easy (unless you just default to filename_lineNumber).
Modules get a name assigned automatically (_NAME). But that's about it. Using debug.getinfo is not such a bad way to go about synthesizing a default name.
--
PA.
http://alt.textdrive.com/nanoki/

AltStyle によって変換されたページ (->オリジナル) /