[fpc-pascal] dynamic array contents and system.move
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon Apr 26 08:59:24 CEST 2010
On 26 Apr 2010, at 03:27, David Emerson wrote:
> It would be nice if move would give a compiler warning or note if it
> receives a
> pointer-pointer. I guess that would require move doing type-
> checking... but at
> compile-time, is there anything wrong with move doing such a type-
> check and
> issuing a warning?
Yes:
a) the compiler has no idea about "move" in particular, so it would
give this warning for all pointers passed to formal var/const/out
parameters
b) this warning would also be triggered if you'd use move on a regular
array of pointers, which would be wrong
Jonas
More information about the fpc-pascal
mailing list