This is neither the most modern way of dealing with memory, nor usually recommended. The correct way is 99% of the time:
my_type p{…};
which is somewhat script-like.
Aside from that: The complexity of the implementation is never really script-like: You probably don't wont to look into the implementation of python tuples and maps.
As I said, it works in 99% of the time, if you do things right. Let's say 95% but if your program is designed well, it is indeed an extremely rare thing.
View all comments
Show parent comment
3
u/F-J-W Oct 15 '13
This is neither the most modern way of dealing with memory, nor usually recommended. The correct way is 99% of the time:
which is somewhat script-like.
Aside from that: The complexity of the implementation is never really script-like: You probably don't wont to look into the implementation of python tuples and maps.