Closed Andre-LA closed 2 years ago
Not really a bug, some variables names are present in _ENV
and _G
, in case there is a symbol name conflict the user must index symbols
table instead, so use symbols.context.value
instead of context.value
in that case.
Name conflicts are expected, Lua has many names reserved already like table
, string
, type
.. Any symbol using those names must be indexed via symbols
table.
That makes sense, I'll close the issue.
Bug description
When using
comptime
parameters, when the parameter it's called "context" or any identifier that matches a field on_ENV
, the behavior get's different andfoo.value
it'snil
since the value it's from _ENV and not from the nelua parameter.Code example
Expected behavior
Both
foo
andbar
functions working with the same behavior.Workaround
Avoid using
context
or any other identifier from_ENV
table.Environment