[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Feature request: hiding upvalues
- From: Gabriel Bertilson <arboreous.philologist@...>
- Date: Fri, 16 Nov 2018 01:53:02 -0600
Right, I was being sloppy. Thanks for the correction because it was misleading.
On Thu, Nov 15, 2018 at 6:19 PM Tim Hill <email@example.com> wrote:
> > On Nov 15, 2018, at 3:22 PM, Gabriel Bertilson <firstname.lastname@example.org> wrote:
> > So the function expression
> > `function () return x end` either returns an upvalue or a global, and
> > the assignment `x = 10` is resolved to an assignment
> Actually it doesn’t return an upvalue OR a global .. it returns whatever value was in ‘x’ when the function was called.