[fpc-devel] Redefine FillChar() to use out parameter instead
"Vinzent Höfler"
JeLlyFish.software at gmx.net
Thu Nov 19 22:15:21 CET 2009
Florian Klaempfl <florian at freepascal.org>:
> Vinzent Höfler schrieb:
> > Florian Klaempfl <florian at freepascal.org>:
> >
> >> A VAROUT parameter could have the same semantics as VAR except that the
> >> compiler does not expect that it is needed that it is initialized. But
> >> be warned: with such a parameter type you can easily create memory
> leaks
> >> with automated types like ansistrings.
> >
> > I don't understand the issue.
>
> Indeed, I noticed :)
Care to explain why the programmer can easily determine something which seems to be an unsolvable problem for the compiler, although both have exactly the same information?
Vinzent.
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
More information about the fpc-devel
mailing list