From: William Djaja Tjokroaminata Date: 2002-09-09T22:11:10+09:00 Subject: Re: Is It Possible to Create Block from within C? Hi, Thanks a lot for all the information. So it seems that probably it is an "acceptable" or "common" practice in the Ruby-C world to cast an address to a VALUE. (I do hope that Ruby will always have the size of VALUE to be identical to the size of pointer in all its future versions.) Regards, Bill ============================================================================ nobu.nokada@softhome.net wrote: > Pass struct address casting to VALUE. > # untested code. > struct arg { > VALUE trans, nextState; > }; > (...deleted...) > struct arg arg; > arg.trans = trans; > arg.nextState = Qnil; > rb_iterate(call_func, trans, statement, (VALUE)&arg); > -- > Nobu Nakada