Rosetta Code talk:Village Pump/Suggest a programming task: Difference between revisions

(→‎Memory allocation?: How about ...)
Line 56:
I'm not sure how a lot of languages work with memory allocation, but I know that a lot C++ students at my college often forget the difference between <tt>delete</tt> and <tt>delete[]</tt>. I'm not really sure how to put something like that in a task though. Something to show memory allocation and deallocation, and memory allocation on the [[system stack]] vs. the [[heap]]. It may be appropriate to talk about ways of customizing [[garbage collection]] in this task. It may take a couple of tasks, though. Anyone have a good idea of how to set it up? --[[User:Mwn3d|Mwn3d]] 22:00, 10 May 2009 (UTC)
: A large number of programming languages recognize the difference between heap memory and stack memory; For many of them, [[Memory Allocation]] is as fundamental as control structures. Simply creating a task dedicated to the allocation of data and objects on both types should be sufficient; The information will find its way there. --[[User:Short Circuit|Short Circuit]] 15:55, 11 May 2009 (UTC)
 
:: How about ''"Create, use, then destroy a number of objects in series where the total amount of memory used by the objects if not re-used, would be comfortably more than the amount of memory available to the program"''. It does not distinguish between stack and heap but allows garbaage collected dynamic languages to give solutions too. --[[User:Paddy3118|Paddy3118]] 08:44, 22 December 2009 (UTC)
Anonymous user