Learned this today.

 begin
   ...
 end while condition

Same as C's:

 do {
   ...
 } while condition;

Matz wants to deprecate it, but it'll probably be around for the
remainder of the 1.8 series anyway.

Note that it is distinct from the normal meaning of suffix-while:

 # prints: foO!
 begin
   puts "foO!"
 end while false

 # prints nothing
 puts "foO!" while false

-mental

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Rubygrammar-grammarians mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygrammar-grammarians

Reply via email to