[Date Prev][Date Next][Thread Prev][Thread Next]
- From: Petite Abeille <petite_abeille@...>
- Date: Mon, 30 Jun 2008 18:38:11 +0200
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.