[fpc-devel] Wrong docs: not initialized global variables

Jonas Maebe jonas at freepascal.org
Wed Apr 4 20:03:28 CEST 2018


On 04/04/18 19:32, Ondrej Pokorny wrote:
> On 04.04.2018 18:53, Jonas Maebe wrote:
>> On 04/04/18 18:44, Ondrej Pokorny wrote:
>>> I want to stress that the compiler emits a warning on code that does 
>>> not have (and also cannot have) an error
>>
>> An error is wrong code behaviour. If you do not initialise a variable 
>> with the correct value, then you can have an error.
> 
> No, no, no and again no. Do you try to convince me that I cannot rely on 
> well documented compiler behavior?

No. You replied to the above sentence out of context. The context was 
given in the next sentence:

>> This correct value can be different from "empty string" or "nil". 
> 
> If I want to have a different value from "empty string" or "nil" I know 
> I have to initialize it by myself. I don't need a warning for it.

Then turn it off.


Jonas



More information about the fpc-devel mailing list