[fpc-pascal] optional parameter

spir ☣ denis.spir at gmail.com
Mon May 3 23:40:25 CEST 2010


On Mon, 3 May 2010 14:28:13 -0300
Flávio Etrusco <flavio.etrusco at gmail.com> wrote:

> > Needed to change the
> > parameter to be a pointer to the record instead (so the default can be nil), but this creates a
> > trap for the calling code.
> > Else, is there a common trick or workaround?
> >  
> 
> What trap?

Simply that the caller must know a pointer must be passed instead of the parameter. And think at it everytime.

Denis
________________________________

vit esse estrany ☣

spir.wikidot.com



More information about the fpc-pascal mailing list