Nothing.  As far as I can remember that syntax has worked.  It made me
feel very nice coming from Python. ;)

You can also do that with if statements:

>> if true:
?>   puts "things"
>> end
things
=> nil

...and probably others.

--Jeremy

On Sun, May 25, 2008 at 9:49 PM, Charles Thornton
<ceo / hawthorne-press.com> wrote:
> Core,
>
> While working on chapter 8 --
>
> I was looking at dave' book on while and until loops
> and saw this syntax
>
>  while boolean-expression { do | : }
>   body
>  end
>
> OK - When did this (':') become allowed?
>  while i < 10 :
>     puts "hi"
>     i += 1
>   end
> The above code works -- But what I am missing???
>
> Chuck T.
>
> --
> Competency and chastity have much in common,
> they both encompass their own punishment!
> -- C.E. Thornton -- Hawthorne Press --
>
>
>



-- 
http://jeremymcanally.com/
http://entp.com

Read my books:
Ruby in Practice (http://manning.com/mcanally/)
My free Ruby e-book (http://humblelittlerubybook.com/)

Or, my blogs:
http://mrneighborly.com
http://rubyinpractice.com