digitalmars.D.learn - assert
- Ellery Newcomer (3/3) Jul 08 2009 I'm tired and witless just now, but I can't think of any reason why
- Kagamin (2/6) Jul 08 2009 A requirement for assert expression to be inside ExpressionStatement?
- Tim Matthews (11/15) Jul 08 2009 assert only evaluates to void but maybe someone writes something like:
I'm tired and witless just now, but I can't think of any reason why assert should be an expression and not a statement. Any clues?
Jul 08 2009
Ellery Newcomer Wrote:I'm tired and witless just now, but I can't think of any reason why assert should be an expression and not a statement. Any clues?A requirement for assert expression to be inside ExpressionStatement?
Jul 08 2009
Ellery Newcomer wrote:I'm tired and witless just now, but I can't think of any reason why assert should be an expression and not a statement. Any clues?assert only evaluates to void but maybe someone writes something like: module test; import std.stdio; void main() { bool readyForMath = true; int i = 2; int result = (assert(readyForMath),i*=i,i++); writeln(i); }
Jul 08 2009