Hugh Sasse wrote:
> On Fri, 15 May 2009, Sarah Allen wrote:
> 
>> - Errors for which the error messages were hard to figure out
>>  Shoes. app   (note: they are trained to put a space after the period)  also
>> Shoes . app
> 
> The first is acceptable ruby: I recall seeing lines split after a '.'
> on Ruby-Talk (possibly from the late Guy Decoux).
> I point this out because it is an interesting failure mode which
> may tell us something useful.
> I can verify this for Ruby 1.8.7's IRB
> 
> 13:32:36$ irb
> irb(main):001:0> (3 * 7). to_s
> => "21"
> irb(main):002:0> (3 * 7).
> irb(main):003:0* to_s
> => "21"
> irb(main):004:0>
> 
> But I don't have a 1.9.1 on any machines yet, so can't tell you if
> that has changed.

royw-gentoo ~ # ruby --version
ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux]
royw-gentoo ~ # irb --version
irb 0.9.5(05/04/13)
royw-gentoo ~ # irb
irb(main):001:0> (3 * 7).to_s
=> "21"
irb(main):002:0> (3 * 7). to_s
=> "21"
irb(main):003:0> (3 * 7) . to_s
=> "21"
irb(main):004:0> (3 * 7).
irb(main):005:0* to_s
=> "21"


HTH,
Roy

Reply via email to