[fpc-pascal] compile time init'ing records

Marco van de Voort marcov at stack.nl
Fri Apr 13 10:29:34 CEST 2018


In our previous episode, Ryan Joseph said:
> Why can?t we just do something simple like this?

Because it is very limited and forces the initialization at the place of
declaration, which is rare if not zero.

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



More information about the fpc-pascal mailing list