Projects

Ticket #158 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

MacRuby tutorial comments

Reported by: jclark42796@… Owned by: lsansonetti@…
Priority: minor Milestone: MacRuby 0.4
Component: MacRuby Keywords: tutorial
Cc:

Description

Not sure if this is the right place, I noticed a couple things about the MacRuby tutorial, it says:

"foo".class

=> NSCFString

"foo".class.ancestors

=> [NSCFString, NSMutableString, NSString, Comparable, Object, NSObject, Kernel]

With 0.3 it should be

"foo".class

=> NSMutableString

"foo".class.ancestors

=> [NSMutableString, NSMutableString, NSString, Comparable, NSObject, Kernel]

Though, in 0.3, I'm not sure why NSMutableString is reported twice?

Jim

Change History

Changed 3 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from MacRuby 0.3 to MacRuby 0.4

You're right, this was a bug in 0.3, which has been fixed in trunk since.

$ macirb
>> MACRUBY_VERSION
=> 0.4
>> 'foo'.class
=> NSMutableString
>> 'foo'.class.ancestors
=> [NSMutableString, NSString, Comparable, NSObject, Kernel]
>> 
Note: See TracTickets for help on using tickets.