[MacRuby-devel] NSSet and Set broken in MacRuby 0.5 final?

Laurent Sansonetti lsansonetti at apple.com
Fri Feb 12 12:26:03 PST 2010


Hi Frank,

On Feb 12, 2010, at 7:12 AM, Frank Illenberger wrote:

> Hi there,
> 
> today I updated my MacRuby installation from MacRuby 0.5b1 to 0.5 final. Sadly, this broke my class "MERStandard" which used a Set.
> My Cocoa app embeds the MacRuby.framework. I initialized an empty set like this, which worked fine with MacRuby 0.5b1
> 
> mySet = Set.new
> 
> With MacRuby 0.5 final I am getting the following error:
> 
> An exception occured: NameError uninitialized constant MERStandard::Set
> 
> If I put a
> 
> require 'set'
> 
> at the top of my class file, I get the following error:
> 
> An exception occured: LoadError no such file to load -- set
> 
> Am I doing something wrong or was anything substantial changed in the relase version?

In the final 0.5 release we decided to revert our NSSet-based implementation of set and use the pure-Ruby implementation, so you do need to require 'set'. If 'set' can't be found in your application bundle maybe it's because you did not embed the standard library? 

Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20100212/8990ef1a/attachment.html>


More information about the MacRuby-devel mailing list