Re: [fpc-pascal] SetLength warnings - request

2018-12-30 Thread Martok
> There is a hint for such parameters even though the compiler knows they > always contain a valid value, because valid in the sense of "won't crash > the program" is not the same as "this is what the programmer intended". Are you baiting me, or was that accidental? ;-) > 1) Dynamic arrays

Re: [fpc-pascal] SetLength warnings - request

2018-12-30 Thread Michael Van Canneyt
On Sat, 29 Dec 2018, Jonas Maebe wrote: On 2018-12-29 22:00, Derek Edson wrote: Would it not be simpler to have the compiler initialize all dynamic array variables to nil, like for string variables, which should prevent the uninitialized warning/hint without requiring special treatment for