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

→‎Memory allocation?: memory allocation task
(→‎Memory allocation?: new section)
(→‎Memory allocation?: memory allocation task)
Line 49:
 
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)