TypeInfo_Array.value is null

kinke noone at nowhere.com
Thu Nov 5 19:00:43 UTC 2020

On Thursday, 5 November 2020 at 16:48:50 UTC, Remi wrote:
> I followed how TypeInfo_Array is written in the vanilla runtime 
> object.d and I was expecting TypeInfo_Array.value to be set by 
> the compiler but it is null in my case.

Hi, typeid(string) is a built-in TypeInfo in druntime 
(https://github.com/ldc-developers/druntime/blob/412467a452e2d12f561a2eace933dd44014af3c6/src/rt/util/typeinfo.d#L612), not built by the compiler.

> Is there something I should be doing that I'm not?

By the looks of it, you should probably be using the `next()` 
method instead of the `value` field directly.

More information about the digitalmars-d-ldc mailing list