GC, the simple solution

Derek Parnell derek at psych.ward
Thu Jun 8 23:46:03 PDT 2006


On Thu, 08 Jun 2006 22:18:24 -0700, Walter Bright wrote:


> The approach most real time programmers use to deal with this is to 
> preallocate all needed data before entering the real time section, and 
> the real time section does no malloc's or free's.
> 
> Also, you can use malloc and free in D, in exactly the same way you 
> would in C.

It seems obvious that if one doesn't want the Garbage Collector to collect
garbage, one doesn't create any garbage for it to collect. ;-)

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocrity!"
9/06/2006 4:44:56 PM



More information about the Digitalmars-d mailing list