3 ms·
Does this care about memory at all? In the transpiled code I see structures getting allocated but never deallocated. That will work for this trivial examples,
by Matthias247 12y ago
Does this care about memory at all?
In the transpiled code I see structures getting allocated but never deallocated.
That will work for this trivial examples, but not for anything serious.
To properly translate Python to C++ you would have atleast produce a shared_ptr<T> from every T and even that doesn't work with cycles. Rust translation is even more complicated.
- agentultra 12y agoIt also doesn't even appear to generator initializer lists for the constructor which could lead to some fun behaviors down the road...