Ver 4.0 allocate() question
- Posted by bernie Sep 14, 2008
- 816 views
Is there any good reason that the interpreter returns non-initialize memory
from the allocate function?
Most of the code that I have seen using the allocate function in Euphoria
is closely followed by a mem_set() zero or poke() zero function.
Would'nt it be a good idea to zero out memory internally during the allocate()
This would prevent some user errors and remove the mem_set() over-head.
It would still allow a user to initialize to some other value with mem_set()
or poke() functions