Wrappers so far are mainly for my own private testing use, rather than for 
something to publish 

Basically, going through the lazyfoo tuts, but transliterating as closely as 
possible from the original C over to Nim

eg, code snippets like these, from the C version of chapter 3:

[http://lazyfoo.net/tutorials/SDL/03_event_driven_programming/index.php](http://lazyfoo.net/tutorials/SDL/03_event_driven_programming/index.php)
    
    
    //User requests quit
    if( e.type == SDL_QUIT )
    {
        quit = true;
    }
    

And
    
    
    //Quit SDL subsystems
    SDL_Quit();
    

I'd be trying to write directly like this in Nim:
    
    
    # User requests quit
    if e.`type` == SDL_QUIT:
        quit = true
    

And
    
    
    # Quit SDL subsystems
    SDL_Quit()
    

Mainly it means that for my direct translation from C to Nim, that one snippet 
needs to change to this for me:
    
    
    # User requests quit
    if e.`type` == SDL_QUIT_CONSTANT:
        quit = true
    

Was mainly wondering if there's a way to not need to do that kind of renaming 
while doing direct transliterations from other languages to Nim 

Reply via email to