D - Bug/oversight
- Dan Liebgold (9/9) Feb 23 2003 So casting an integer to a struct doesn't work, but it also gives an ass...
- Walter (1/1) Feb 24 2003 Thanks, I'll take care of it. -Walter
So casting an integer to a struct doesn't work, but it also gives an assertion
(line 166 in file constfold.c) instead of an error message. This code
demonstrates:
struct ENTRY {}
const ENTRY test = (ENTRY)0;
int main (char argv[][]) {
return -1;
}
Dan
Feb 23 2003








"Walter" <walter digitalmars.com>