#pragma comment (lib, ...)
Paulo Pinto
pjmlp at progtools.org
Wed Oct 10 10:49:57 PDT 2012
On Wednesday, 10 October 2012 at 15:43:36 UTC, Simen Kjaeraas
wrote:
> On 2012-10-10, 16:19, Walter Bright wrote:
>
>> On 10/10/2012 4:26 AM, Manu wrote:
>>> I think D's modules make this relationship even stronger, and
>>> it's a shame it's
>>> not a standard part of D.
>>
>> Some object module formats do not have the ability to embed a
>> library reference in them. Elf (cough cough), Mach-O (wheeze)
>
> ELF has .comment and .note sections. While they're not exactly
> intended
> for the purpose, they seem to fit the bill?
>
> It'd of course require a linker to know what to do with the
> data, but
> it seems to me this would not interfere with other uses.
>
> Note: The above comes from a 2-minute cursory read of the ELF
> standard,
> and may thus contain errors. :p
This is how Go packages are compiled.
The compiler reads the libraries (.a, .o) for the symbol
information of what a package exports.
--
Paulo
More information about the Digitalmars-d
mailing list