No header files?

AJ aj at nospam.net
Sun Oct 25 21:04:59 PDT 2009


"Lionello Lunesu" <lio at lunesu.remove.com> wrote in message 
news:hbulk2$1jt8$1 at digitalmars.com...
> On 22-10-2009 8:01, Walter Bright wrote:
>> Yigal Chripun wrote:
>>> the only valid IMO use case for header files is for linking libs - the
>>> compiler can handle just find binary formats for that.
>>
>> I was originally going to go with a binary format for that - but it
>> turned out to be pointless. dmd is so fast at parsing, there simply was
>> no advantage to replacing the text file parser with a binary file parser.
>>
>> If you consider the .di file as a "binary format", I think you'll find
>> it fulfills all the purposes of it, as well as being human readable
>> without needing a pretty-printer.
>
> There's no need for a new format: D's name mangling has all information 
> necessary to reconstruct a function's full signature.

Seemingly (i.e., "it would seem to be so"), D assumes that that one thing is 
the only value of a header file.





More information about the Digitalmars-d mailing list