Re: [fpc-pascal] Over-zealous Warning about dynamic string initialization

2013-11-01 Thread Dmitry Boyarintsev
On Fri, Nov 1, 2013 at 1:08 PM, Michael Van Canneyt wrote: > I recommend against it. > > It can bite you in the leg, it has bitten me in the leg several times. > For instance the result identifier for functions returning ansistring is > particularly tricky. I'm wondering if it's a question about

Re: [fpc-pascal] Over-zealous Warning about dynamic string initialization

2013-11-01 Thread Jonas Maebe
On 01/11/13 17:57, Howard Page-Clark wrote: var s:ansistring; begin WriteLn('s <',s,'> always seems to be initialized to '); end. produces a Warning Warning: Variable "s" does not seem to be initialized Can this Warning be disabled for compiler-managed variables? The point of the

Re: [fpc-pascal] Over-zealous Warning about dynamic string initialization

2013-11-01 Thread Michael Van Canneyt
On Fri, 1 Nov 2013, Howard Page-Clark wrote: The following program: program Project1; {$mode objfpc}{$H+} var s:ansistring; begin WriteLn('s <',s,'> always seems to be initialized to '); end. produces a Warning Warning: Variable "s" does not seem to be initialized Can this Warning

[fpc-pascal] Over-zealous Warning about dynamic string initialization

2013-11-01 Thread Howard Page-Clark
The following program: program Project1; {$mode objfpc}{$H+} var s:ansistring; begin WriteLn('s <',s,'> always seems to be initialized to '); end. produces a Warning Warning: Variable "s" does not seem to be initialized Can this Warning be disabled for compiler-managed variables? H