July 25, 2004 foreach gpf & assertion failure | ||||
---|---|---|---|---|
| ||||
this version results in a GPF char[] ch = "test"; foreach(char ; ch){}; ^-------note missing identifier and this results in assertion failure foreach(int idx, char ; ch){}; output: Assertion failure: '0' on line 651 in file 'statement.c' abnormal program termination |
Copyright © 1999-2021 by the D Language Foundation