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
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal