Re: [MacRuby-devel] Bug with #method.call and blocks
Exact same thing was recently reported on JRuby:
http://twitter.com/#!/headius/status/161662203223752704
I'd file a bug. Closed as dup is no skin off a dev's back, but unreported
issues are guaranteed never to be fixed (well, almost…)
;)
On Wednesday, January 25, 2012 at 2:59 AM, Gabriel Gilder wrote:
> Hi all, I have a feeling this might be a known issue, but I couldn't find any
> discussion of it.
>
> I've put together a simple example: https://gist.github.com/1675279
>
> Basically, if I have a class Foo, with an instance method bar that yields to
> a block, in MRI I can do this:
>
> Foo.new.method(:bar).call() { puts "something" }
>
> But in MacRuby, the block is not passed to the method by .call().
>
> Again, sorry if this is a known issue...
>
> -Gabriel
>
>
> ___
> MacRuby-devel mailing list
> [email protected] (mailto:[email protected])
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Bug with #method.call and blocks
Cool, just filed.
-Gabriel
On Jan 25, 2012, at 12:30 AM, Joshua Ballanco wrote:
> Exact same thing was recently reported on JRuby:
> http://twitter.com/#!/headius/status/161662203223752704
>
> I'd file a bug. Closed as dup is no skin off a dev's back, but unreported
> issues are guaranteed never to be fixed (well, almost…)
>
> ;)
> On Wednesday, January 25, 2012 at 2:59 AM, Gabriel Gilder wrote:
>
>> Hi all, I have a feeling this might be a known issue, but I couldn't find
>> any discussion of it.
>>
>> I've put together a simple example: https://gist.github.com/1675279
>>
>> Basically, if I have a class Foo, with an instance method bar that yields to
>> a block, in MRI I can do this:
>>
>> Foo.new.method(:bar).call() { puts "something" }
>>
>> But in MacRuby, the block is not passed to the method by .call().
>>
>> Again, sorry if this is a known issue...
>>
>> -Gabriel
>>
>>
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Bug with #method.call and blocks
Thanks! Looks like watson picked it up and it seems to be working in the latest
nightly. If you need any help working with the nighties, just let us know :)
On Wednesday, January 25, 2012 at 4:13 AM, Gabriel Gilder wrote:
> Cool, just filed.
>
> -Gabriel
>
>
> On Jan 25, 2012, at 12:30 AM, Joshua Ballanco wrote:
> > Exact same thing was recently reported on JRuby:
> > http://twitter.com/#!/headius/status/161662203223752704
> >
> > I'd file a bug. Closed as dup is no skin off a dev's back, but unreported
> > issues are guaranteed never to be fixed (well, almost…)
> >
> > ;)
> >
> > On Wednesday, January 25, 2012 at 2:59 AM, Gabriel Gilder wrote:
> >
> > > Hi all, I have a feeling this might be a known issue, but I couldn't find
> > > any discussion of it.
> > >
> > > I've put together a simple example: https://gist.github.com/1675279
> > >
> > > Basically, if I have a class Foo, with an instance method bar that yields
> > > to a block, in MRI I can do this:
> > >
> > > Foo.new.method(:bar).call() { puts "something" }
> > >
> > > But in MacRuby, the block is not passed to the method by .call().
> > >
> > > Again, sorry if this is a known issue...
> > >
> > > -Gabriel
> > >
> > >
> > > ___
> > > MacRuby-devel mailing list
> > > [email protected]
> > > (mailto:[email protected])
> > > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> > >
> > >
> > >
> >
> >
> > ___
> > MacRuby-devel mailing list
> > [email protected]
> > (mailto:[email protected])
> > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
> ___
> MacRuby-devel mailing list
> [email protected] (mailto:[email protected])
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Bug with #method.call and blocks
BIG UPS to Watson, he is coding like there is no tomorrow :-) great work dude! thanks the MacRuby team for the great work and Gabriel for the bug report! ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
