No TypeTuple expansion for assert?
monarch_dodra via Digitalmars-d
digitalmars-d at puremagic.com
Fri Oct 3 13:02:14 PDT 2014
On Friday, 3 October 2014 at 19:21:38 UTC, Dmitry Olshansky wrote:
> 03-Oct-2014 23:08, Ali Çehreli пишет:
>> I know that assert is not a function but it would be nice to
>> have.
>>
>
> Indeed. If we make it a function and put in object.d would
> anyone notice the change?
I think there are semantics that prevent that. Such as
"assert(0)", or removing the evaluation of arg in "assert(arg())"
altogether in release.
More information about the Digitalmars-d
mailing list