|
|
|
|
|
by seertaak
1055 days ago
|
|
Indeed there's no question that Nim is basically following C++'s lead on this. Nim iirc always had constructors and destructors. Final piece of the puzzle is move semantics, and I recall a blog post where Araq came up with something very similar. |
|
the relevant docs are here: https://nim-lang.org/docs/destructors.html