[fpc-pascal] Result: string
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Mar 6 13:47:54 CET 2013
On 06 Mar 2013, at 13:37, José Mejuto wrote:
> 2.6.0, 2.6.2 and 2.7.1 trunk produces a warning with that code, but
> with this one 2.6.0, and 2.7.1 trunk does not generate it (I do not
> have 2.6.2 to test):
That's because you are passing an uninitialized value to a var-
parameter. That only generates a hint, because a lot of code uses var-
parameters also for parameters that do not yet have to be initialized
(because the code predates the existence of the "out" keyword, or
simply out of habit).
This is unrelated to string results specifically.
Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130306/d02e2ef7/attachment.html>
More information about the fpc-pascal
mailing list