Re: [fpc-pascal] User-defined operators and dummy parameters

2013-08-12 Thread Mark Morgan Lloyd
Sven Barth wrote: On 10.08.2013 12:04, Mark Morgan Lloyd wrote: Is it possible to pass a dummy parameter to a user-defined operator, with no expectation that it be referenced? The following test program compiles OK but fails at runtime with an error 217 on all platforms if the record is empty.

Re: [fpc-pascal] User-defined operators and dummy parameters

2013-08-11 Thread Sven Barth
On 10.08.2013 12:04, Mark Morgan Lloyd wrote: Is it possible to pass a dummy parameter to a user-defined operator, with no expectation that it be referenced? The following test program compiles OK but fails at runtime with an error 217 on all platforms if the record is empty. It works if it cont

[fpc-pascal] User-defined operators and dummy parameters

2013-08-10 Thread Mark Morgan Lloyd
Is it possible to pass a dummy parameter to a user-defined operator, with no expectation that it be referenced? The following test program compiles OK but fails at runtime with an error 217 on all platforms if the record is empty. It works if it contains a variant, but not reliably with other