[fpc-pascal] compile time init'ing records

Maciej Izak hnb.code at gmail.com
Fri Apr 13 10:33:42 CEST 2018


2018-04-13 10:29 GMT+02:00 Marco van de Voort <marcov at stack.nl>:

> p.s. does r:=default(r); do anything ? Or does that only work in generics?


works for non-generics types too, can be used instead of FillChar(..,..,0);

-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180413/28fa9c04/attachment.html>


More information about the fpc-pascal mailing list