>
> Howdy. I have a quick question here which isn't purely REBOL. I'm trying 
> to convert some javascript into REBOL, though, and came across something 
> I'm uncertain of:
>
>      int dn=dr;{while (dr==dn || dr==dj || dr==du){dr=(int)random(8)+1;}}
>
> Why is the while wrapped in brackets? What does this do?
>
> It's been about 6 or so years since I worked in Java or C/++ - never 
> really did javascript at all, but the majority of it is easily deciphered. 
> This however has me temporarily confused. Appreciate any info. Thanks.

It means pretty much nothing in Java (maybe an 'if' was removed, and they 
were being lazy?), but that's all I know - it seemed to run the same.  Try 
removing them in the Javascript, see if there's a difference..

        -Izzy 

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to