[OT] Modules dropped out of C++17

Tobias Müller via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 9 11:20:43 PDT 2015


"Kagamin" <spam at here.lot> wrote:
> On Tuesday, 9 June 2015 at 10:48:22 UTC, Marc Schütz wrote:
>> static assert() is your friend in this case
> 
> The point is that in D you don't need to express ctfe guarantee at all. It just works.

In other words you have no guarantee.
If you want the guarantee you have to ensure it via static assert or
unittest and you have to document it. The constexpr attribute covers both
at once.
And if you don't give that guarantee, well then it may just work. Or not.
Or just stop working at some point in the future.


More information about the Digitalmars-d mailing list