martinheidegger / as3-commons

Automatically exported from code.google.com/p/as3-commons
0 stars 0 forks source link

NEED_ARGUMENT issue on 1.0-RC3 #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi

I'm trying to generate method with MethodBuilder like this:

public function someFunc(arg1, arg2) : void
{
     super.someSuperMethod("const", "second const", arguments);
}

but i can't set NEED_ARGUMENT flag to allow "arguments" in my opcode-based 
source

In case of this, i'm getting getlocal_3 ('cause i've 2 args) == null, not 
arguments

Could you fix it?

Thx, and sorry for my English - I'm from Russia )

Original issue reported on code.google.com by bsid...@gmail.com on 4 Jun 2011 at 10:03

GoogleCodeExporter commented 9 years ago

Original comment by mastakan...@gmail.com on 11 Sep 2011 at 6:51

GoogleCodeExporter commented 9 years ago
Sorry to get back to you this late. I completely forgot about this issue.
I have made the MethodBuilder.needArguments property writable, so if you set it 
to true. So your use case ought to be covered. Let me know if you have any 
other problems.

cheers,

Roland

Original comment by ihatelivelyids on 11 Sep 2011 at 7:28

GoogleCodeExporter commented 9 years ago
Wow! Thx a lot! 

Nice to see it!

I'll test it tomorrow

Original comment by bsid...@gmail.com on 11 Sep 2011 at 7:32