Assert allowed to have side effects?

simendsjo simen.endsjo at pandavre.com
Sun May 29 08:02:25 PDT 2011


On 29.05.2011 15:03, bearophile wrote:
> In D there are pure functions, so I think it's not too much hard for it to tell apart when the contents of an assert() are pure or not.
> My opinion is that the D compiler has to enforce purity inside assert(), to avoid bugs.

http://d.puremagic.com/issues/show_bug.cgi?id=6074



More information about the Digitalmars-d-learn mailing list