On Tue, 7 Dec 2010 16:13:13 -0800 Laurent Sansonetti
<[email protected]> wrote:
> Hi Saul,
>
> Did you install the BridgeSupport preview 1 release? Without it, C
> blocks won't work in MacRuby.
>
> http://www.macruby.org/blog/2010/10/08/bridgesupport-preview.html
Even without the BridgeSupport stuff, it should not segfault, it
should error out, preferably with a human comprehensible error. It is
bad behavior for an HLL interpreter to register its displeasure by
crashing...
Perry
> Laurent
>
> On Dec 7, 2010, at 3:55 PM, Saul Mora wrote:
>
> > Hello,
> >
> > I've installed the latest nightly build from 12/7, and tried
> > running the sample code from the last blog post regarding calling
> > [NSArray enumerateObjectsUsingBlock:] from with macirb. I
> > successfully get a segfault every time I run the sample:
> >
> > framework 'Foundation'
> > a = [1, 2, 3, 4, 5]
> > a.enumerateObjectsUsingBlock(Proc.new { |obj, index, stop|
> > p obj
> > stop.assign(true) if index == 2
> > })
> >
> > Has anything changed since that sample code was posted?
> > Thanks,
> > Saul
> > _______________________________________________
> > MacRuby-devel mailing list
> > [email protected]
> > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
--
Perry E. Metzger [email protected]
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel