Re: what does two semicolns ';;' do



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".
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • Re: what does two semicolns ;; do
    ... Yeah, ... AIR foris slightly more efficient/faster than while. ... Both statements translate to exactly one assembly ...
    (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)
  • Re: Ibiquitys "Gag Order" on engineers
    ... Yeah, yeah, yeah... ... 12 on the air, and permits for nearly a dozen more. ... HCRM1 and now an announcer on various Spanish stations in Atlanta, ... but you would expect someone to be such a fool as to own a license directly, ...
    (rec.radio.shortwave)