[fpc-pascal] Warning "Local variable seems to be not initialized" on dyn array
el.es.cr at gmail.com
Tue Mar 10 18:16:17 CET 2015
On 10/03/15 16:08, Jürgen Hestermann wrote:
> Am 2015-03-10 um 09:48 schrieb Lukasz Sokol:
>> On 10/03/15 06:10, Jürgen Hestermann wrote:
>>> Am 2015-03-09 um 19:24 schrieb DaWorm:
>>>> I would think this part answers that question: "The warning means
>>>> that no value has been */explicitly/* assigned to these variables
>>>> (which */may indicate a logic error/* in the code), not necessarily
>>>> that they contain an unpredictable value." (emphasis mine)
>>> No, it answer not the question. As I already wrote in my other mail:
>>> Why am I forced to add superfluous (initialization) code just to get
>>> rid of a warning that is completely useless (false). Managed types
>>> *are* initialized so this warning just pollutes the message window
>>> and distracts from the realy useful information.
>>> Why not simply omit these messages (for managed types)?
>> Just because YOU don't need it, doesn't mean it's useless for everybody...
> Then please tell me, what do you (or anybody else) gain from this warning?
> Especially, as it claims something that is definitely not true (for managed types).
> It may even misguide some to add initialisation code without need and
> it distracts from the realy important messages.
Just googled this out:
(edit: meant this actually)
and this immediately after:
More information about the fpc-pascal