@jzakiya Too bad there is no seq constructor from raw pointer and size.  This 
way, you could just make seq which is, in fact, a view of another seq. 
Hypothetical example:
    
    
    var s = @[3,1,4,1,5,9,2]
    var v = ptrToSeq(s[2].addr, 3)
    assert(v == @[4,1,5])
    

Reply via email to