[fpc-devel] Improper OUT usage.

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Mar 11 07:44:57 CET 2013


On 10 Mar 2013, at 22:08, Sven Barth wrote:

> On 10.03.2013 20:39, Flávio Etrusco wrote:
>> I'd really like the compiler would stop with an error if it can't
>> prove a variable/out/result is initialized.
>> Did anybody try implementing this in FPC?
> 
> Have fun fixing the errors then:

I thought he meant inside the routine with the out-parameter, i.e. add a similar check for out-parameters as for function results. On the caller side it doesn't matter whether or not the out-parameter is already initialized.


Jonas


More information about the fpc-devel mailing list