AFAIK, the byaddr pragma is dangerous iff the underlying data structure gets 
relocated. Is it possible or would it be possible to have something like 
    
    
    var S:seq[T]
    # populate S
    var s0 {.byaddr.} = S[0]
    try :
      monitor(S) # activate a handler which raises "Relocation Error" if S got 
relocated
     ... use  s0
    except Relocation Error :
     ...
    
    
    Run

Reply via email to