Re: what does two semicolns ';;' do



Tim Roberts <timr@xxxxxxxxx> wrote:
jimp@xxxxxxxxxxxxxxxxxxxx wrote:
larry@xxxxxxxxxxxxxxxxx wrote:

I am looking at some code which process an uploaded file and it has
loops like:

for(;;){ // for([two semicolons){

what is the function of the two semicolons? loop until break?

Yeah, same as while (1) {.

AIR for(;;) is slightly more efficient/faster than while(1).

That's silly. Think about it for a moment. How on earth could that
possibly be true? Both statements translate to exactly one assembly
instruction: a "jmp".

True if there is optimization going on.


--
Jim Pennino

Remove .spam.sux to reply.
.



Relevant Pages

  • Re: what does two semicolns ;; do
    ... AIR foris slightly more efficient/faster than while. ... Both statements translate to exactly one assembly ... exactly one assembly instruction: a "jmp". ...
    (comp.lang.php)
  • Re: what does two semicolns ;; do
    ... loops like: ... Yeah, ... AIR foris slightly more efficient/faster than while. ...
    (comp.lang.php)
  • Re: what does two semicolns ;; do
    ... Yeah, ... AIR foris slightly more efficient/faster than while. ... Jim Pennino ...
    (comp.lang.php)
  • Re: My G5 & Leopard
    ... Yeah, all those reports that are out there are just so much hot air. ... Common sense meaning "I am experienced with windows and can do this ... Almost where Mac has been for years, ...
    (comp.sys.mac.advocacy)
  • Re: My G5 & Leopard
    ... >>> Yeah, all those reports that are out there are just so much hot air. ... > Common sense meaning "I am experienced with windows and can do this ... Almost where Mac has been for years, ...
    (comp.sys.mac.advocacy)