[fpc-devel] ConvUtils: question regarding Delphi compatibility. How to proceed?

2022-06-19 Thread Bart via fpc-devel
Hi, The RegisterConversionType() function has an overload with two paramters of type TConversionProc. It is used for conversions that have different offsets on their respective scales (like temperature). If used like: === code === tuFahrenheit := RegisterConversionType(cbTemperature,txttuFahrenhe

Re: [fpc-devel] ConvUtils: question regarding Delphi compatibility. How to proceed?

2022-06-19 Thread Marco van de Voort via fpc-devel
On 19-6-2022 12:09, Bart via fpc-devel wrote: It feels a bit counter-intuïtive to me though. IMO it should simply not be allowed to call RegisterConversionType() with either of the TConversionProc parameters being nil, since that makes no sense to me, and it will inevitably lead to exceptions la