Why are void[] contents marked as having pointers?

Vladimir Panteleev thecybershadow at gmail.com
Sun May 31 23:26:22 PDT 2009


On Mon, 01 Jun 2009 05:28:39 +0300, Christopher Wright <dhasenan at gmail.com> wrote:

> Vladimir Panteleev wrote:
>> std.boxer is actually a valid counter-example for my post.
>> The specific fix is simple: replace the void[] with void*[].
>> The generic "fix" is just to add a line to  
>> http://www.digitalmars.com/d/garbage.html adding that hiding your only  
>> reference in a void[] results in undefined behavior. I don't think this  
>> should be an inconvenience to any projects?
>
> What do you use for "may contain unaligned pointers"?

Sorry, what do you mean? I don't understand why such a type is needed? Implementing support for scanning memory ranges for unaligned pointers will slow down the GC even more.

-- 
Best regards,
 Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d mailing list