torch / tds

Torch C data structures
Other
80 stars 25 forks source link

Free created structures #12

Closed kvitajakub closed 8 years ago

kvitajakub commented 8 years ago

Hello,

I am little confused about how to destruct created structures, is it necessary to call a destructor, set them to nil or something, or it doesn't matter? I assume this should be somehow addressed, as it is not managed by GC.

Could somebody point me to the explanation? Maybe it would be nice to put one or two sentences about that to the docs.

soumith commented 8 years ago

it is definitely handled by gc https://github.com/torch/tds/search?utf8=%E2%9C%93&q=gc