Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-10 Thread Martok
>> I seem to remember that this was once documented somewhere for Delphi. Can't >> seem to find it though, so maybe it was a 3rd-party book? There is >> no hint of it >> in the FPC documentation, anyway. > As already noted, it is not necessary in DelphiAh sorry, I was wrong: > misremembered

Re: [fpc-pascal] Coercing record fields together

2018-07-10 Thread Martin
On 09/07/2018 18:22, Ryan Joseph wrote: Could I do some RTL magic on a record to loop over its fields and set them to another record by name? In the example below I want to set all the fields in TRecA to matching named fields in TRecB. Just curious if we can do this automatically using RTL.