April 08, 2003 Import glitch | ||||
---|---|---|---|---|
| ||||
Since D is case sensitive, and Windows filenames are not, things get kind of odd when inconsistent case is used with import statements. one.d: import sdl; import two; void main() { SDL_Init(...); } two.d: import SDL; void initVideo() { SDL_SetVideoMode(...); } ..\sdl\SDL.d(57): function SDL_Init conflicts with sdl.SDL_Init at ..\sdl\sdl.d(57) This will cause symbols to conflict with themselves when you try to compile it. Using consistent case fixes the problem, but the error message isn't very intuitive. |
May 25, 2003 Re: Import glitch | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andy Friesen | "Andy Friesen" <andy@ikagames.com> wrote in message news:b6vii3$2iim$1@digitaldaemon.com... > Since D is case sensitive, and Windows filenames are not, things get kind of odd when inconsistent case is used with import statements. I know. The most practical solution is to simply stick with lower case letters for module names. |
Copyright © 1999-2021 by the D Language Foundation