List of Phobos functions that allocate memory?

Dmitry Olshansky dmitry.olsh at gmail.com
Fri Feb 7 08:40:57 PST 2014


07-Feb-2014 06:44, Walter Bright пишет:
> On 2/6/2014 2:15 PM, Brad Anderson wrote:
>> Personally I don't think bad user input qualifies as an exceptional
>> case because
>> it's expected to happen and the program is expected to handle it (and
>> let the
>> user know) when it does. That's just a matter of taste though.
>
> It's not a matter of taste. If your input is subject to a DoS attack,
> don't put exceptions in the control flow.

Meh. If exceptions are such a liability we'd better make them (much) 
faster.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list