Re: Ver 4.0 allocate() question
- Posted by DerekParnell (admin) Sep 15, 2008
- 842 views
SDPringle said...
most of the time when you allocate memory you are about to poke something interesting into it anyway
That is a good point. So maybe the default action should be to not clear the allocation and if you want it cleared, then use the extra parameter.
atom m1, m2 m1 = allocate(80) -- Eighty bytes of uncleared RAM allocated. m2 = allocate(80, CLEARED) -- Eighty bytes of cleared RAM allocated.