J. Gareth Moreton via fpc-devel <fpc-devel@lists.freepascal.org> schrieb am Mi., 16. Sep. 2020, 16:10:
> I did wonder if it was possible to use an object of some kind or, I dare > say, some evil low-level manipulation of its internal structure wrapped > into a convenient function that, say, calls ReallocMem on the internal > pointer and sets the length field as normal. The trouble is, that will > be inherently unsafe on account that you can't pass an untyped dynamic > array as a formal parameter ("array of const" is, as the name implies, > an array of constants that's just a list). > "array of const" is internally an "array of TVarRec" and can be used for non constants as well (there values will be copied to the open array). Regards, Sven
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel