[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: OO Syntax
- From: "Peter Prade" <prade@...>
- Date: Wed, 24 Apr 2002 20:11:47 +0200
> 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