[MacRuby-devel] Compiling HotCocoa

2010-02-06 Thread isaac kearse
I was trying to speed up a little HotCocoa app I just released ( http://isaac.kearse.co.nz/2010/02/07/safarirss/ ) and when I tried to compile HotCocoa I ran into a strange issue with one particular file: http://github.com/richkilmer/hotcocoa/blob/master/lib/hotcocoa/mappings.rb All the files in

Re: [MacRuby-devel] EXC_BAD_ACCESS When Reopening NSDate

2010-02-06 Thread Laurent Sansonetti
Your code causes an infinite loop. It's because you're calling #to_s recursively. It has nothing to do with re-opening NSDate. The same happens with the original version of Ruby, BTW. $ ruby19 -e "class Foo; def to_s; p '%p' % self; end; end; p Foo.new" -e:1: stack level too deep (SystemStackE

[MacRuby-devel] EXC_BAD_ACCESS When Reopening NSDate

2010-02-06 Thread steve ross
This code creates an EXC_BAD_ACCESS error: class NSDate def to_s NSLog "#{__LINE__} NSDate#to_s %@", self 'hello' end end NSDate.date.to_s If I change the NSLog statement to: NSLog "#{__LINE__} NSDate#to_s hello" Then I get the log entry and no EXC_BAD_ACCESS. Any idea what's caus

Re: [MacRuby-devel] [MacRuby] #576: It's possible to close STDOUT (and presumably other standard IO streams)

2010-02-06 Thread Timothy McDowell
I get the same IOError when I try to STDOUT.close from IRB. On Sat, Feb 6, 2010 at 12:05 PM, MacRuby wrote: > #576: It's possible to close STDOUT (and presumably other standard IO > streams) > > ---+ > Reporter: matt...@…

Re: [MacRuby-devel] [MacRuby] #576: It's possible to close STDOUT (and presumably other standard IO streams)

2010-02-06 Thread MacRuby
#576: It's possible to close STDOUT (and presumably other standard IO streams) ---+ Reporter: matt...@… | Owner: lsansone...@… Type: defect | Status: new