[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: one more (stupid) idea ,,,
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 19 Apr 2016 08:11:53 -0300
> > :method instead self:method
> >and
> > .field instead self.field
When you define methods, use the full syntax and choose a one-letter
variable instead of self:
function MyClass.myMethod(O, ...)
return O:f() + O.n
end
but call methods with the colon syntax:
myObject:myMethod(...)
Your proposal is ambiguous syntax:
a = b
:method()
is the same as
a = b:method()
- Prev by Date:
Re: one more (stupid) idea ,,,
- Next by Date:
Re: one more (stupid) idea ,,,
- Previous by thread:
Re: one more (stupid) idea ,,,
- Next by thread:
Re: one more (stupid) idea ,,,
- Index(es):