Limo Driver <> writes:
> My contribution to the contest:
>
> 5**6**7
>
> This baby throws "Errno::EBADF: Bad file descriptor", which I think
> deserves a medal for being the least intuitive error message of 2008!
Works fine for me:
$ irb
irb(main):001:0> 5**6**7
=> 73643396061195573182045442760389697209119043099561 473825102644208480
80271451222449204242010655986286553096951684440491 235491489097071221600
73189280314561194164500176158310362022388644790243 471934093460794441233
52773742517692136546608518658769275630499890833988 104996453386858963527
.....
and so on
this on my locally compiled irb 0.9.5(05/04/13) on debian
> And now, for the real question...
>
> Why is this being evaluated as 5**(6**7), when for instance 9/9/9 is
> being evaluated normally (9/9)/9=0, instead of 9/(9/9)=9?
What makes you think either order is the "normal" one?
--
Joost Diepenmaat | blog:
http://joost.zeekat.nl/ | work:
http://zeekat.nl/