Why are void[] contents marked as having pointers?

Christopher Wright dhasenan at gmail.com
Wed Jun 3 15:14:28 PDT 2009


Jarrett Billingsley wrote:
> On Tue, Jun 2, 2009 at 7:11 PM, Christopher Wright <dhasenan at gmail.com> wrote:
>> Vladimir Panteleev wrote:
>>> I wasn't suggesting any GC modifications, I was just suggesting that
>>> void[]'s TypeInfo "has pointers" flag be set to false.
>> The suggestion was that void[] be used as ubyte[] currently is, and then to
>> use void*[] to indicate an array of unknown type that may have pointers.
> 
> How do you have a void*[] point to a block of memory that is not a
> multiple of (void*).sizeof?

Another good point. Or how do you index it by byte?



More information about the Digitalmars-d mailing list