June 23, 2004 0.93 Bug with associative array | ||||
---|---|---|---|---|
| ||||
The sample code below gives the following error : "test.d(10): cannot implicitly convert void* to HANDLE" Worked fine up until 0.93. Can't find a work around so I'm dead in the water... The error seems to related to the statement typedef void *HANDLE; in windows.d, changing to 'alias void * HANDLE' fixes this problem but introduces others. ================ private import std.c.windows.windows; class test { int List[HANDLE][int][uint]; this(){}; int GetMsgHandler(HANDLE h,uint Msg) { assert(Msg in List[h][0]); //Offending line return 0; } } int main(){return 0;} |
Copyright © 1999-2021 by the D Language Foundation