Re: I/O: What is the best format? (To CChris [and All])

new topic     » goto parent     » topic index » view thread      » older message » newer message

Paulo Fernandes wrote:
> 
<snip>
> Now I know that there are the functions date() and time() but I prefer
> to keep the original function in the same way.
> A question: the interpreter give me an error message when I declare the
> variable of a 'loop for'. Is this correct?
> 
> Thanks a lot!
> God blessed You!
> 
> Paulo Fernandes
> Brasil
> 

<snip>
That's ok, I'll keep the original stuff; after all it's not a performance
killer since you invoke it only once. 

Yes, loop index variables should not be declared. This is justified because
loop indexes have a very peculiar definition scope, which is unlike any
declared variable. If I remember correctly, Pascal allows you to define the
index and so reuse it after the loop finished. That could be useful, but if 
you need this, you currently have to use a while loop and increment manually
some counter you declared, which behaves as just another variable.

Obrigado.
CChris
PS: while I manage to understand simple portuguese, I'd have problem writing
it, because I'm far more fluent in spanish.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu