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