[RCR] Numeric#of

Actually I guess both these are bad syntax. You would have to
use proc, I suppose.

a,b,c = 3 * proc { Array.new }

And suddenly it seems like more trouble than it is worth.

yes.

(accidentally,) I did not know this was possible:

irb(main):082:0> []*5
=> [, , , , ]

Hal

kind regards -botp

···

Hal Fulton [mailto:hal9000@hypermetrics.com] wrote:

Beware
([]*5).map{|x| x.object_id}
=> [537934156, 537934156, 537934156, 537934156, 537934156]

···

On Tue, May 25, 2004 at 03:55:20PM +0900, “Peña, Botp” wrote:

(accidentally,) I did not know this was possible:

irb(main):082:0> []*5
=> [, , , , ]


Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

No, that’s wrong too. Now there’s a race condition between the rm and
the mv. Hmm, I need more coffee.
– Guy Maor on Debian Bug#25228