Graeme Geldenhuys wrote:
Florian Klaempfl wrote:
initialized. But be warned: with such a parameter type you can easily
create memory leaks with automated types like ansistrings.


Well, isn't that what heaptrc is for?

No, the language should protect you from such easy to make mistakes.
In theory don't want to know how a type is implemented and if it is safe to pass as parameter (unless the compiler forbids using varout for such types) Weren't you recently involved in a discussion about knowing the under-the-hood implementation of automated types and their behaviour ?


Marc
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to