Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/Finalization    [ Add a report in this area ]  
Report #:  37594   Status: Open
Allow finalization without initialization
Project:  Delphi Build #:  10.0.2288.42451
Version:    10.0 Submitted By:   Erick Sasse
Report Type:  New Feature Request Date Reported:  12/11/2006 12:24:39 PM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   256924
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (7 Total Ratings)
3.29 out of 5
Total Votes: None
Description
Every time we need to put some code only in the finalization part of a unit, we need to specify an empty initialization. Maybe it's a good idea to allow a finalization without initialization.
Steps to Reproduce:
None
Workarounds
None
Attachment
None
Comments

Daniel England at 12/13/2006 2:20:21 PM -
Why?  

I like that I have to put the initialization declaration in.  It reminds me that the implementation is probably through registering "at exit" procedures which would be done "automagically" in the initialization.

Daniel.

Server Response from: ETNACODE01