GCs in the news

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 17 22:34:43 PDT 2014


On 7/17/2014 4:01 PM, H. S. Teoh via Digitalmars-d wrote:
> As Brad said, it's far easier to go from lazy to eager than the other
> way round, e.g., by sticking .array at the end, or .copy(buf) where buf
> is allocated according to whatever scheme the user chooses. Since buf is
> declared by the user, the user is free to use whatever allocation
> mechanism he wishes, the string algorithm doesn't know nor care what it
> is (and it shouldn't need to).

Yup. It enables separating the allocation strategy from the algorithm.



More information about the Digitalmars-d mailing list