DMD's codeview types for arrays

Walter Bright newshound at digitalmars.com
Tue Jan 23 13:04:45 PST 2007


Jascha Wetzel wrote:
> Walter Bright wrote:
>> Sure, but I suggest a better way - add our own extension to CV data.
> 
> ok, i can think of type leafs similar to this (notation according to CV
> specs):
> size content
> 2    LF_DYN_ARRAY (define as 0x0017)
> 2    @elemtype
> 
> and
> 2    LF_ASSOC_ARRAY (define as 0x0018)
> 2    @elemtype
> 2    @keytype
> 
> couldn't that also trigger the problem with functions returning such types?

No, because you can fix your debugger. What I'd do is the same thing I 
do with gdb, -g generates D debug info and needs a debugger aware of it, 
-gc generates C debug info for debuggers that aren't. In this case, the 
C debug info will not change.



More information about the Digitalmars-d mailing list