Re: what does two semicolns ';;' do
- From: Tim Roberts <timr@xxxxxxxxx>
- Date: Mon, 30 Jun 2008 03:17:43 GMT
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.
.
- Follow-Ups:
- Re: what does two semicolns ';;' do
- From: jimp
- Re: what does two semicolns ';;' do
- References:
- what does two semicolns ';;' do
- From: larry
- Re: what does two semicolns ';;' do
- From: jimp
- what does two semicolns ';;' do
- Prev by Date: Cheap Price !! 25 Years AF1 Shoes, Timberland UGG Boots, Diesel Evisu Shoes
- Next by Date: Re: use SESSION variable?
- Previous by thread: Re: what does two semicolns ';;' do
- Next by thread: Re: what does two semicolns ';;' do
- Index(es):
Relevant Pages
|