Re: suppressing hints[Re: [fpc-pascal] How to solve variable does not seem to be initialized compiler hint.]

2009-11-20 Thread Jürgen Hestermann
That's the idea of hints. Telling you you need to look at the code once, and if it's ok = good. But if the hint was correct = fix it. But if you later change your code it may become not ok again. I don't think that this is good working practice. I would prefer to have the compiler recognize

suppressing hints[Re: [fpc-pascal] How to solve variable does not seem to be initialized compiler hint.]

2009-11-19 Thread Martin
Jonas Maebe wrote: On 19 Nov 2009, at 22:50, Rainer Stratmann wrote: Yes, but for that is the compiler-switch $PASS_VAR_NO_HINT ON. Then no hint is put out by the compiler. When using FPC 2.4.0rc1 or later: a) compile your code with -vq b) note the message number for the

Re: suppressing hints[Re: [fpc-pascal] How to solve variable does not seem to be initialized compiler hint.]

2009-11-19 Thread Vinzent Höfler
Martin f...@mfriebe.de: Ideally it would be, if there was a directive or similar, to suppress it for given lines (or statements). one that is easier than {$push} { $HINT OFF} ... {$POP} {$HINTS OFF} ... code ... {$HINTS DEFAULT} maybe? Whereas DEFAULT restores the switch to the original

Re: suppressing hints[Re: [fpc-pascal] How to solve variable does not seem to be initialized compiler hint.]

2009-11-19 Thread Rainer Stratmann
Am Thursday 19 November 2009 23:16:26 schrieb Vinzent Höfler: Martin f...@mfriebe.de: Ideally it would be, if there was a directive or similar, to suppress it for given lines (or statements). one that is easier than {$push} { $HINT OFF} ... {$POP} {$HINTS OFF} ... code ... {$HINTS

Re: suppressing hints[Re: [fpc-pascal] How to solve variable does not seem to be initialized compiler hint.]

2009-11-19 Thread Martin
Rainer Stratmann wrote: Am Thursday 19 November 2009 23:16:26 schrieb Vinzent Höfler: Martin f...@mfriebe.de: Ideally it would be, if there was a directive or similar, to suppress it for given lines (or statements). one that is easier than {$push} { $HINT OFF} ... {$POP}

Re: suppressing hints[Re: [fpc-pascal] How to solve variable does not seem to be initialized compiler hint.]

2009-11-19 Thread Vinzent Höfler
Rainer Stratmann rainerstratm...@t-online.de: Am Thursday 19 November 2009 23:16:26 schrieb Vinzent Höfler: {$HINTS OFF} ... code ... {$HINTS DEFAULT} maybe? Whereas DEFAULT restores the switch to the original state. But then you have to do it everywhere in the code instead of

Re: suppressing hints[Re: [fpc-pascal] How to solve variable does not seem to be initialized compiler hint.]

2009-11-19 Thread Martin
Vinzent Höfler wrote: Rainer Stratmann rainerstratm...@t-online.de: Am Thursday 19 November 2009 23:16:26 schrieb Vinzent Höfler: {$HINTS OFF} ... code ... {$HINTS DEFAULT} maybe? Whereas DEFAULT restores the switch to the original state. But then you have to do it