Implementing typestate

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 16 09:38:41 PDT 2015


On Wednesday, 16 September 2015 at 16:24:49 UTC, Idan Arye wrote:
> No need for `reinterpret_cast`. The `close` function is 
> declared in the same module as the `File` struct, so it has 
> access to it's private d'tor.

True, so it might work for D. Interesting.



More information about the Digitalmars-d mailing list