September 06, 2019 Why are constructor definitions are preserved in interface files? | ||||
---|---|---|---|---|
| ||||
module lib.a; class C { this() { } void foo() { } ~this() { } } dmd -H -o- a.d: // D import file generated from 'a.d' module lib.a; class C { this() { } void foo(); ~this(); } The destructor and member function definitions have been removed as expected. What is the reason for keeping the constructor definition? |
Copyright © 1999-2021 by the D Language Foundation