On Friday, 4 May 2012 at 17:54:47 UTC, Andrej Mitrovic wrote:
On 5/4/12, foobar <[email protected]> wrote:
How about augmenting the object format so that libraries would
be
self contained and would not require additional .di files? Is
this possible optlink by e.g. adding special sections that
would
be otherwise ignored?
How would you use a library you don't even have the interface
to? I
mean if you can't even look at the API in your editor.. that'd
be
insane.
How about using the documentation? It's meant to be consumed by
humans and comes with (or should if it isn't yet) with nicely
formatted explanations.
The di files are mostly meant to be machine read (e.g. the
compiler) and this belongs as part of the library file in order
to provide ease of use and maintain the relationship between the
binary code and it's interface.
maintaining two sets of files that could easily get out of sync
and *not* using the docs is way more insane.