I haven't seen this mentioned in the github issues or in the googleverse, so I 
assume that it isn't some kind of deficiency.

If I have a table that is a field of an object, how do I release the resources 
being held by that table in the object's destructor?
    
    
    import tables
    
    type AObj = object
        name: string
        tableField: Table[string, string]
    
    proc `=destroy`(x: AObj) =
        echo "Destroying A named ", x.name
        `=destroy`(x.name)
        # `=destroy`(x.tableField)    # Option 1 - Compile error, no =destroy 
hook for Table
        # clear(x.tableField)         # Option 2 - Compile error, x is not var
    
    
    Run

Reply via email to