On Jan 24, 2006, at 9:13, François PERRAD wrote:

I start with the following patch, but I am not happy with it.
does_isa() isn't a public function (I haven't found a handle for a pmc).
It allows the expected syntax but the behavior isn't good :
the created pmc is a Sub not a LuaFunction.

François.

Index: imcparser.c

And worse, imcparser.c is created from imcc.y ;)

pbc.c has some more code that deals with the type of subroutines.
The actual creation of the PMC is done in src/packfile.c, where a few more tests for enum_class_Sub are present.

leo

Reply via email to