François Perrad wrote:
After reverting commit 26097 ([core] Implement does_pmc and ...),
Why revert it? The behavior wasn't quite right, but we fixed it in the
pdd17pmc branch.
The compiler generates :
- a call to VTABLE_neg (in luaany.pmc) when "print(-nil)"
- a call to METHOD len (in luaany.pmc) when "print(#nil)", # is the Lua
length operator
After that, in ppd17pmc, the method caller (in lua.pmc) find a new level
in the call stack when METHOD len is called.
I don't know if it's a expected behavior in ppd17pmc.
I'll update the test files to accept the output "(unknown file):-1".
METHODs in the pdd17pmc branch are now what we used to call PCCMETHODs.
An extra level in the stack is to be expected.
Allison