[fpc-pascal] Optional param modifier

Jonas Maebe jonas at freepascal.org
Fri Apr 12 21:52:06 CEST 2019

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.


More information about the fpc-pascal mailing list