[Yarv-devel] translation of node_scope

jm jeffm at ghostgun.com
Wed Mar 9 01:02:15 EST 2005


I've since worked around this problem, but still it's good to have an  
explanation. The work around was simple - put all the stuff using dbi  
out side of the __PROG__ in the modified test.rb example script.
It now stops much later

== disasm: <ISeq:b at b@main at test-flowmeter.rb>============================
local scope table (size: 1, argc: 1)

0000 getdynamic_SC_xx_ax1, 1                                          (  
114)
0003 putobject_OP_INT2FIX_O_1_C__SC_ax_ab
0004 opt_plus_SC_ab_ax
0005 setdynamic_SC_ax_xx1, 1
0008 putself_SC_xx_ax                                                 (  
117)
0009 getdynamic_OP_1_0_SC_ax_ab
0010 send_OP__WC___WC__Qfalse_0__WC__SC_ab_ax:record_usage, 1, <ic>
0014 end_SC_ax_ax    2
------------------------------------------------------------------------ 
-----
vflow
test-flowmeter.rb:126: [BUG] unknown type 0x22 (0x12 given)
ruby 1.9.0 (2005-02-01) [i686-linux]

Aborted


vflow is a c module interface to flow-tools that I wrote. Does this  
mean that yarv doesn't handle compiled modules?

Hopefully that makes sense as I'm running out the door as I write this.

Jeff.


On 09/03/2005, at 4:26 PM, Eric Hodel wrote:

> On 08 Mar 2005, at 19:52, jm wrote:
> But I don't recall if a NODE_SCOPE can be created outside of a def.   
> (At least, I haven't seen any show up.)  But 1.8 is likely to be  
> totally unlike YARV in this respect.
>
> -- 
> Eric Hodel - drbrain at segment7.net - http://segment7.net
> FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04



More information about the Yarv-devel mailing list