lua-users home
lua-l archive

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


> The problem is, users often forget which is which.  Do they use ':' or
> '.'?  Sure, as they become Lua experts, and become more familiar with
> my library, this will be a non-issue, but I don't want them to have to
> become experts.

i guess an easy solution for this would be to use the : syntax everywhere.
then, in your namespaced functions, just throw away the first parameter (or
check if the first param is self, and only then throw it away)

--Peter