From: Roger Pack on

> Actually , I tried :
>
> rb_funcall3(rb_const_get(rb_cObject, rb_intern("Thread")),
> rb_intern("new"), 0, 0);
>
> But >> `initialize': must be called with a block (ThreadError)

The code at

http://betterlogic.com/roger/?p=2474&cpage=1#comment-3372

uses rb_iterate which "passes a block" to a method.
-r
--
Posted via http://www.ruby-forum.com/.

First  |  Prev  | 
Pages: 1 2
Prev: Creating Arrays Through a Loop
Next: UTF8 hell