tooling quality and some random rant

Jacob Carlborg doob at me.com
Mon Feb 14 05:37:29 PST 2011


On 2011-02-13 18:36, Andrej Mitrovic wrote:
> On 2/13/11, Alan Smithee<email at example.com>  wrote:
>>> You can do the same in D using .di files.
>>
>> Except no one really does that because such an approach is insanely
>> error prone. E.g. with classes, you need to copy entire definitions.
>> Change any ordering, forget a field, change a type, and you're having
>> undefined behavior.
>>
>
> Could you elaborate on that? Aren't .di files supposed to be
> auto-generated by the compiler, and not hand-written?

Yes, but they don't always work.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list