On p. 11 of "Nim in Action" one finds the following:
C and C++ both require you to manually manage memory, carefully ensuring that what you allocate is deallocated since it's no longer needed.
It is true that if all you do is use plain C pointers then yes, you must manage memory carefully. But at least C++ does not strictly require pne do to this, as the Standard Template Library offers unique_pointer and shared_pointer. Moreover, in both C and C++ the Boehm Garbage Collector is extremely well-established. I don't know how widely used it is, but several other languages' compilers use BGC as a way to garbage collect. (More than one Oberon compiler, for example.)
Or does the text here mean to distinguish beween what is merely in the language and what the STL adds?
(I apologize for not posting this in the "Nim in Action" forum at Manning, but I don't seem to find a way to actually post anything there at the moment: It only allows me to mark messages as read, watch this forum, and search.)
Or does the text here mean to distinguish beween what is merely in the language and what the STL adds?
Yep :)