Hello,
whenever I try to compile this chunk of code:

[code]
SDL_SysWMinfo info;
SDL_VERSION(&info.version);
if(SDL_GetWindowWMInfo(win,&info)) {
  writeln(info.subsystem);
}
[/code]
 this error shows up:
 Error: identifier expected following '.', not 'version'



BTW, i'm following the SDL official documentation (written for C): https://wiki.libsdl.org/SDL_GetWindowWMInfo
  Derelict SDL is fine, I have compiled SDL code before.
I Know that the word "version" is reserved for D, but how do I circumvent this issue?




Reply via email to