logical const idea - scratchspace
Steven Schveighoffer
schveiguy at yahoo.com
Mon May 14 14:19:43 PDT 2012
On Mon, 14 May 2012 17:11:14 -0400, Alex Rønne Petersen
<xtzgzorex at gmail.com> wrote:
> Another concern I have is that this couples a feature tightly to the
> implementation of the GC. What if another GC doesn't use the same
> allocation scheme?
newScratchSpace uses GC.malloc to ensure the block is big enough. The GC
must support returning a block of memory large enough to hold the
requested bytes.
It's not tightly coupled, even though it depends on the GC.
-Steve
More information about the Digitalmars-d
mailing list