[Dwarf-discuss] Re: Dwarf-discuss Digest, Vol 8, Issue 2

Todd Allen todd.allen
Mon Apr 18 13:06:39 GMT 2005


> 
> > Assuming that we are really violently agreeing, it seems to me
> > that Cownie's suggested solution is very C/C++ specific and does
> > not extent at all well to other languages and/or other classes of
> > types that might have a similar equivalence problem.
> 
> Yes, it's C++ specific because the equivalence I'm looking for is with
> types named in the C++ standard. It's not for equivalence between DIES. 
> 
> Similar information may well be required for ADA, Java, Fortran and
> other languages, and I'd be happy with changing it to 
> 
>   DW_AT_language_standard_type
> 
> and having more enumeration values which allowed those languages also to
> assert which language standard type this DIE represents.
> 

I expect any language which needed this would need to define its own set of
values for each enumerated language-specific type.  We don't currently have
any attributes whose set of values is determined by the language.  So, this
would be a new precedent.  Perhaps it's better just to stick with a
C++-specific name and C++-specific values, and any other language would be
free to define its own similar attribute & values for each enumerated type.

I can't speak for Java or Fortran, but Ada wouldn't be able to use this
functionality.  Language-defined types and user-defined types really are on
equal footing with respect to overload resolution in Ada.  I wouldn't expect
that Fortran would either, but I haven't really kept up on newer versions of
Fortran.

-- 
Todd Allen
Concurrent Computer Corporation




More information about the Dwarf-discuss mailing list