David MacMahon

Activity

Reported issues: 2

01/08/2015

04:42 AM Ruby trunk Bug #10713: Assigning default value for a Hash as an empty Array creating unpredictable results
Arvinder Singh wrote:
> ~~~
> irb(main):001:0> letters = Hash.new([])
> => {}
> irb(main):002:0> letters[:a] << 1...

12/05/2014

07:28 AM Ruby trunk Feature #10570: Allow `+=` etc. to be methods
Yukihiro Matsumoto wrote:
> `Array#[]=` can be defined by alternation of elements of an array, which does not contai...
12:56 AM Ruby trunk Feature #10570: Allow `+=` etc. to be methods
David MacMahon wrote:
> Yukihiro Matsumoto wrote:
> > For example, how can we define `Integer#+=`?
>
> Immutable...
12:48 AM Ruby trunk Feature #10570: Allow `+=` etc. to be methods
Thanks for your thoughtful reply!
Yukihiro Matsumoto wrote:
> `a+=b` is a short hand form of `a = a + b` by defin...

12/04/2014

10:30 PM Ruby trunk Feature #10570 (Rejected): Allow `+=` etc. to be methods
In MRI, it is currently possible to create `#+=` methods in C extensions and even `+=` aliases for existing methods i...
05:11 PM Ruby trunk Misc #10560: confusion between x=x+y, x+=y, x.concat(y) and y.each{|z| x<<z}
I imagine that Python also lets one override the `+=` method. I think this is impossible on Ruby because I think it ...

11/26/2014

07:14 PM Ruby trunk Feature #10544: Time#to_i(:millisecond)
How about a more general `Time#to_i(scale=1)`?
Examples:
* Passing `1` for `scale` (or passing nothing) would r...

10/13/2014

03:48 AM Ruby trunk Feature #10225: [PATCH] *math.c: New method Math.normcdf
On Oct 11, 2014, at 11:18 PM, mail@tanakakazuki.com wrote:

> Sorry for my late. It's hard to say but.. ruby-gsl d...

09/17/2014

04:58 AM Ruby trunk Feature #10077: [PATCH] Implement Matrix#row_merge and Matrix#column_merge
On Sep 16, 2014, at 4:21 PM, mail@tanakakazuki.com wrote:

> So I propose `horz_merge` and `vert_merge`. Dose it m...
04:49 AM Ruby trunk Feature #10225: [PATCH] *math.c: New method Math.normcdf
On Sep 16, 2014, at 4:14 PM, mail@tanakakazuki.com wrote:

> Actually I know that gem(how nice it is!), I'm discon...

Also available in: Atom