Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

nice surprise in ruby's CVS

0 views
Skip to first unread message

gabriele renzi

unread,
Mar 2, 2005, 2:30:42 AM3/2/05
to
Hi gurus and nubys,

I did my usual check out of ruby's cvs HEAD and I discovered I can now
do this (but this is marked EXPERIMENTAL):

a= {|x| x**x }
a.call(10) =>10000000000

lovely, ain't it?

George Moschovitis

unread,
Mar 2, 2005, 4:31:16 AM3/2/05
to
Great, but

a(10) => 10....00

would be better ;-)

-g.

Martin DeMello

unread,
Mar 2, 2005, 4:56:58 AM3/2/05
to

a[10] is not too terrible :)

martin

gabriele renzi

unread,
Mar 2, 2005, 5:29:20 AM3/2/05
to
George Moschovitis ha scritto:

> Great, but
>
> a(10) => 10....00
>
> would be better ;-)
>

yay, waiting for that ;)

Csaba Henk

unread,
Mar 2, 2005, 12:58:40 PM3/2/05
to

Eppur si muove! ;)

Csaba

0 new messages