[dmd-internals] changeset 455
Jason House
jason.james.house at gmail.com
Wed May 5 10:52:05 PDT 2010
On May 5, 2010, at 8:42 AM, Jason House <jason.james.house at gmail.com>
wrote:
>
> I hate how, with the current design, someone can't write their own
> helper functions that use assert. e.g.
> unittest{
> foreach(x; 0..10)
> validate_foo(bar(x), x);
> }
>
Another thing I dislike with the current design is that the following
would segfault:
auto x = foo();
assert( ! (x is null) );
assert( x.bar == 7 );
More information about the dmd-internals
mailing list