this what i came up with for the + operator
    
    
    proc `+`(a:pointer,p:pointer): pointer =
      result = cast[pointer](cast[int](a) + 1 * sizeof(p))
    

I believe a person has to times the sizeof p by 1. But i could make it use 
generics too i guess but i dunno.

And thank you filwit for your post it was perfect.

i will look into create and resize the unchecked pragma.

Reply via email to