Thank you,
The new flagging confuses me a bit, lobject.h:
In my testing I cannot quite figure out how to detect a named vararg argument that is not a vararg table.
Thanks,
~b
I think the first trick would give me all I need, I collect the locals that are alive
after the first instruction (when it is OP_VARARGPREP). If there is more than
numparams, I still have to check if the varargs param name != (vararg table).
If those conditions pass, I have the vararg param name.
Thank you for giving that info, I overlooked that detail.
--
You received this message because you are subscribed to a topic in the Google Groups "lua-l" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lua-l/KuCiQzliQzY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/20251204162950.GD279202%40arraial.inf.puc-rio.br.
--
You received this message because you are subscribed to a topic in the Google Groups "lua-l" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lua-l/KuCiQzliQzY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lua-l+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lua-l/20251204190752.GB283426%40arraial.inf.puc-rio.br.
> If there were no such plans, could the compiler detect that the control
> variable is being modified and insert the `local k = k` in the AST for such
> cases?
I don't see how it could do that, being a one-pass compiler. When it
starts generating code for 'k', it has no way to know whether there is
some assignment to 'k' later in the code.