On May 5, 2010, at 8:42 AM, Jason House <[email protected]> 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 );
_______________________________________________
dmd-internals mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-internals

Reply via email to