Improving assert-printing in DMD

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 30 02:16:00 PDT 2015


On 09/30/2015 05:08 AM, Andrei Alexandrescu wrote:
> On 09/29/2015 05:25 PM, John Colvin wrote:
>> auto pass = getPassword();
>> pass.clean();
>> assert(pass == pass.toLower());
>> //and on we go ...
>
> Interesting angle, but it's not something we should worry about. -- Andrei

There's also the possibility of failing assertions within toString 
functions causing stack overflows.


More information about the Digitalmars-d mailing list