On 12/04/2019 21:11, Ryan Joseph wrote:
What do you do about the problem of not knowing when a parameter of a 3rd party 
function can accept null?

Normally, if it can't accept nil it should be var-parameter, and if it can then it should be a pointer.

This becomes less clear if a parameter type is already an implicit pointer type (like a class or interface), but there are fewer case of that kind.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to