[MacRuby-devel] implementation of symbols

Laurent Sansonetti lsansonetti at apple.com
Mon Oct 5 17:05:27 PDT 2009


Hi Linan,

Actually, we do use SELs to unify symbols (if you look at parse.y).  
The Symbol class just inherits from NSString for convenience purposes.

The current code is far to be perfect but so far it works okay.

Laurent

On Oct 5, 2009, at 4:55 PM, Linan Wang wrote:

> Hi,
> I read a little bit source codes and found out that Symbol is  
> implemented on top of NSString. My question is if it's a better  
> choice to use SEL as the basis when objc is available? objc runtime  
> takes care of the registration and management. I guess using  
> NSString class is a decision with good reasons, could anybody please  
> shine some lights on it? Thanks
> Best wishes
> Linan
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



More information about the MacRuby-devel mailing list