Certainly the first one was a silly mistake of mine. The function was a method and the variable was a class field. As for the second I'm not so certain. It really gave me errors when I compiled it at first. As I have deleted this fragment now, I can't check wether It had any { } inside it, but the compiler's message mentioned something about a label (of a case statement that I had defined in that commented fragmenta and which was unfinished). After copying- pasting that fragment some times in the file, compiled the file again, with that fragment in it, and the compile was that time successful... Certainly weird.

Thanks anyway for taking the trouble answering,

Christos


On 02 Ιουν 2007, at 12:52 πμ, Flávio Etrusco wrote:

I'm not sure if the following are bugs of 2.1.4:

I'm not sure either ;-)
But since these seem too absurd to be true, just make sure:

1) A variable used in the body of a function that I defined, while it
is not defined  in the function's var part, the file compiles
successfully.

- you're not accessing an external (field or global) variable.

2) The compiler reports error when a code fragment is commented out
with { }, while if I remove altogether the code fragment the file
compiles successfully.

- you don't have '{' chars inside your comments and nested comments are enabled.

Cheers,
Flávio
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to