[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Easy object slot access in 5.2
- From: Patrick Donnelly <batrick@...>
- Date: Sat, 19 Nov 2011 12:35:22 -0500
On Sat, Nov 19, 2011 at 11:40 AM, Tony Finch <email@example.com> wrote:
> So you don't have to write self repeatedly in methods, you can write:
> function myclass.mymethod(_ENV, arg1, arg2)
> slot1 = arg1 + arg2
> slot2 = arg1 - arg2
> This requires you to import all the functions and modules you use into locals so they can be accessed as upvalues.
Also see  for some discussion on this.
- Patrick Donnelly