From: Dave Thomas Date: 2000-05-16T09:21:51-05:00 Subject: [ruby-talk:02836] Loops should return a value - part II A discussion about expression languages and Algol68 led me to think about Ruby loops returning values. I had a look at the parser, and discovered: a = (while i < 10; i += 1; end) #-> void value expression a = begin; while i < 10; i += 1; end; end #-> nil In the latter case, 'while' is treated as if it returned 'nil'. Just a curiosity... Dave