Re: frames and tail calls

  • From: Ronan Collobert <ronan@xxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 10 Apr 2014 14:06:07 +0200

> Assuming you're using 2.1, the 71 is a BC_VARG it complains about,
> not the BC_CALLT.

Indeed, I have just noticed this with -jdump.

> $ luajit-2.1 bcname.lua 71
> VARG

Thanks for the tip, I was wondering how to get this translation.

> So, before you ask: Vararg uses can be compiled only when ...
> 1) their definition is on the same trace, or
> 2) when the number of results is fixed, or
> 3) in special constructs, such as y = select(x, …).

This helps, thanks!

Best,
Ronan

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Other related posts: