www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Struct destructors not available in -betterC?

reply Gary Willoughby <dev nomad.uk.net> writes:
Looking at the page on -betterC it says that struct destructors 
are not available.

See point 11:
https://dlang.org/spec/betterc.html#consequences

This doesn't seem to be true as I'm using them with no problem.
Jul 10 2018
parent reply SrMordred <patric.dexheimer gmail.com> writes:
On Tuesday, 10 July 2018 at 19:14:26 UTC, Gary Willoughby wrote:
 Looking at the page on -betterC it says that struct destructors 
 are not available.

 See point 11:
 https://dlang.org/spec/betterc.html#consequences

 This doesn't seem to be true as I'm using them with no problem.
Yep, the docs are not up to the last dmd updates.
Jul 10 2018
parent reply Seb <seb wilzba.ch> writes:
On Tuesday, 10 July 2018 at 19:28:34 UTC, SrMordred wrote:
 On Tuesday, 10 July 2018 at 19:14:26 UTC, Gary Willoughby wrote:
 Looking at the page on -betterC it says that struct 
 destructors are not available.

 See point 11:
 https://dlang.org/spec/betterc.html#consequences

 This doesn't seem to be true as I'm using them with no problem.
Yep, the docs are not up to the last dmd updates.
But they easily can be: https://github.com/dlang/dlang.org/pull/2415
Jul 10 2018
parent Gary Willoughby <dev nomad.uk.net> writes:
On Tuesday, 10 July 2018 at 20:33:46 UTC, Seb wrote:
 But they easily can be: 
 https://github.com/dlang/dlang.org/pull/2415
Thanks.
Jul 11 2018