Throwing specific Error Obejct for asserts

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Jan 10 07:54:24 PST 2013


On 1/10/13 6:23 AM, monarch_dodra wrote:
> So question: Why don't we have, just like for enforce, the possibility
> of simply writing:
> //----
> assert(i <= j, new RangeError());
> //----

Define another function...?

Andrei


More information about the Digitalmars-d mailing list