FYI, Nim can also inline code, though its usage is discouraged.
    
    
    {.emit:"""
    static char* hello_world() {
        return "Hello, World!";
    }
    """.}
    
    proc hello_world(): cstring {.importc: "hello_world".}
    
    echo hello_world()
    
    
    Run

Reply via email to