This is shorter and a bit more clean in my opinion
    
    
    var a: cstring = ""
    let a_ptr = cast[ByteAddress](a)
    
    echo a_ptr
    

Reply via email to