#756: NArray won't build with MacRuby --------------------------------+------------------------------------------- Reporter: m...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------+-------------------------------------------
Comment(by martinlagarde...@…): After inspection in the code, the dev is using `RCLASS` to determine wether or not an object is an instance of `NArray`: {{{ #!c static void na_check_class_narray(VALUE v) { if (TYPE(v) != T_CLASS) { rb_raise(rb_eRuntimeError, "class required"); } while (v) { if (v == cNArray || RCLASS(v)->m_tbl == RCLASS(cNArray)->m_tbl) return; v = RCLASS_SUPER(v); } rb_raise(rb_eRuntimeError, "need NArray or its subclass"); } }}} We do not use `m_tbl`, so this cannot be emulated :-(. I am looking for a solution right now. We do have an equivalent of what is being done, but it is totally different and would require ugly `#ifdef MACRUBY` etc. Instead we'd rather find a solution that can be used with ruby and macruby :-) -- Ticket URL: <http://www.macruby.org/trac/ticket/756#comment:4> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel