Re: what does two semicolns ';;' do



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?

I've tried to google it but the text filter seems to remove the
semicolons.

Look up a for loop in the PHP doc. Three expressions, separated by semicolons. In this case, the expressions are null (which is also valid).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: Help understanding this use of while
    ... Barry Schwarz writes: ... that the while loop will just occur once but then why use a while loop ... above (i.e. to watch his of her semicolons like a hawk) then what is ... while trick is to introduce a block that is ...
    (comp.lang.c)
  • Re: for loop
    ... The C-style forloop requires semicolons, not commas. ...
    (comp.lang.perl.misc)
  • How to create unique file names?
    ... I need to create unique file names while in a loop. ... producing files, all going at the same time. ... I want to remove all spaces, semicolons, and slashes. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: what does two semicolns ;; do
    ... what is the function of the two semicolons? ... statement in that loop are the empty statement. ... Ridiculous usage of the language construct... ... Sincerely Yours, AnrDaemon ...
    (comp.lang.php)
  • Re: Multivalue tail recursion?
    ... Well, iterate just plain looks nicer/lispier than loop, and ... functions operating on series/vectors/streams of data elements are much ... expressions, because they are typically implemented very inefficiently. ...
    (comp.lang.lisp)