Re: [fpc-pascal] default parameter single = NaN

2016-06-20 Thread David Emerson
On 06/20/2016 02:53 PM, Martin wrote: On 20/06/2016 22:45, David Emerson wrote: I found a workaround, which is to use Infinity as the default value, instead of NaN. It's acceptable for my use, though a little awkward. there is another workaround. Do not repeat the default value at implementati

Re: [fpc-pascal] default parameter single = NaN

2016-06-20 Thread David Emerson
On 06/20/2016 02:43 PM, Jonas Maebe wrote: On 20/06/16 22:59, David Emerson wrote: Error: function header doesn't match the previous declaration for a (non-method) function that does exactly match its previous declaration: function make_scale_matrix (zx:single; zy:single=NaN):t_2d_affine; It

Re: [fpc-pascal] default parameter single = NaN

2016-06-20 Thread Martin
On 20/06/2016 22:45, David Emerson wrote: I found a workaround, which is to use Infinity as the default value, instead of NaN. It's acceptable for my use, though a little awkward. there is another workaround. Do not repeat the default value at implementation. Declare as function make_scale_ma

Re: [fpc-pascal] default parameter single = NaN

2016-06-20 Thread David Emerson
I found a workaround, which is to use Infinity as the default value, instead of NaN. It's acceptable for my use, though a little awkward. ~David ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/l

Re: [fpc-pascal] default parameter single = NaN

2016-06-20 Thread Jonas Maebe
On 20/06/16 22:59, David Emerson wrote: Error: function header doesn't match the previous declaration for a (non-method) function that does exactly match its previous declaration: function make_scale_matrix (zx:single; zy:single=NaN):t_2d_affine; I use "NaN" extensively to indicate a null / no

[fpc-pascal] default parameter single = NaN

2016-06-20 Thread David Emerson
Hey all, After installing fpc 3.0.0, I'm getting an... Error: function header doesn't match the previous declaration for a (non-method) function that does exactly match its previous declaration: function make_scale_matrix (zx:single; zy:single=NaN):t_2d_affine; I use "NaN" extensively to in