Repository navigation
Record helper class constructors/destructors. #80
NickyNockyNu
started this conversation in
Ideas / Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In Delphi, it is possible to add class constructors and destructors to record helpers. eg:
This is not possible in FPC/Unleashed even though things like class variables are allowed. Sure, I could do the same thing using the
initialization/finalizationunit sections but that would always be called, even if the type was never used. Having a class ctor/dtor like this is a much more tidy and efficient way of implementing type initialization. Do you think this should be an added feature?All reactions