Re: Ver 4.0 allocate() question

new topic     » goto parent     » topic index » view thread      » older message » newer message
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. 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu