Florian Groß
3/26/2007 3:02:00 PM
On Mar 26, 4:52 pm, "nonno_lele" <emanuel...@gmail.com> wrote:
> I'm newbie with ruby and to be onest I'm quite surprised about a
> strange behaviour I found: [...]
>
> def dummy?()
> (true
> or false )
> end
Currently, it is the same as (true; or false).
This works:
puts((puts 'foo'; puts 'bar'; 'qux'))
# >> foo
# >> bar
# >> qux
And so does this:
puts((
puts 'foo'
puts 'bar'
'qux'))
# >> foo
# >> bar
# >> qux
Kind regards,
Florian Gross