Bug 1552 – DLL writing instructions do not mention _moduleDtor()

Status
RESOLVED
Resolution
INVALID
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-10-07T17:07:00Z
Last change time
2014-02-24T15:33:22Z
Keywords
spec
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2007-10-07T17:07:23Z
The documentation page "Writing Win32 DLLs in D" located at http://digitalmars.com/d/dll.html does not have a _moduleDtor() call in the "DLLs with a C Interface" source template. This makes the example/template incomplete, and the need to call _moduleDtor() is only mentioned in the "D code calling D code in DLLs" section - which might not be read by people who are not writing DLLs that will be used by D programs.
Comment #1 by bugzilla — 2012-01-21T20:43:00Z
Calling Runtime.terminate() will call _moduleDtor().