Re: SDL Error: identifier expected following '.', not 'version'

2016-03-27 Thread Pedro Lopes via Digitalmars-d-learn
Thanks!

Re: SDL Error: identifier expected following '.', not 'version'

2016-03-27 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 27 March 2016 at 08:52:11 UTC, Mike Parker wrote: When using Derelict, BTW, I should caution that the Sys_WM stuff in Derelict may be buggy. If you run into any odd behavior, feel free to blame it on Derelict (as long as you report it!).

Re: SDL Error: identifier expected following '.', not 'version'

2016-03-27 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 27 March 2016 at 07:55:10 UTC, Pedro Lopes wrote: 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

SDL Error: identifier expected following '.', not 'version'

2016-03-27 Thread Pedro Lopes via Digitalmars-d-learn
Hello, whenever I try to compile this chunk of code: [code] SDL_SysWMinfo info; SDL_VERSION(); if(SDL_GetWindowWMInfo(win,)) { writeln(info.subsystem); } [/code] this error shows up: Error: identifier expected following '.', not 'version' BTW, i'm following the SDL official documentation