From: Rob Biedenharn Date: 2008-08-20T04:40:48+09:00 Subject: Re: Shortest Ruby crash #49 On Aug 19, 2008, at 3:36 PM, Limo Driver wrote: > 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! > > 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? > > Lata! Mine is fine with it: irb> 5**6**7 (irb):17: warning: in a**b, b may be too big => Infinity What ruby do you have that crashes? -Rob Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com