[Ironruby-core] something has changed
will at hotgazpacho.org
Sat Jun 6 10:52:40 EDT 2009
Just curious, but why should nil count as a string object? In C Ruby, nil is
an object, and an empty string object is not nil:
irb(main):001:0> n = nil
irb(main):002:0> s = String.new
irb(main):005:0> s == n
irb(main):008:0> s.eql? n
On Sat, Jun 6, 2009 at 9:23 AM, Ivan Porto Carrero <ivan at flanders.co.nz>wrote:
> Since this weeks updates to ironruby ironrubymvc is completely broken.
> The way overloads are selected now is different.
> for example asp.net mvc has a bunch of methods defined on Controller that
> are protected internal ie. protected internal void View(string, string)
> it also has an overload View(string, object)
> Then it selects the one with object for example in some cases
> also I used to be able to call that view method in a ruby subclass of
> Controller with view nil, 'layout'
> but now I have to call that with with view '','layout' for it to work for
> example. It doesn't know that nil can also count as a string object.
> There are a bunch of other things that are breaking for example it doesn't
> like protected internals as much as it used to anymore either.
> Met vriendelijke groeten - Best regards - Salutations
> Ivan Porto Carrero
> Blog: http://flanders.co.nz
> Twitter: http://twitter.com/casualjim
> Author of IronRuby in Action (http://manning.com/carrero)
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironruby-core