Closed pcwalton closed 11 years ago
Well, if you can access everything that's needed in the inner SDL (such as the error functions and starting SDL!) without exporting it, I don't see why it would be a bad thing to prevent access to save confusion. SDL can be confusing at the best of times so every little will help.
I'll merge this in if nobody has complaints.
Thanks @pcwalton
This one might be controversial, so this is as much an RFC as anything:
Several people have gotten confused when trying to import
sdl::sdl
. It's never necessary to do that, becauserust-sdl
reexports everything under there anyway. For example, you can writesdl::init()
instead ofsdl::sdl::init()
. So I propose just not exporting that inner module.