DIP22 : Private symbol visibility
Paulo Pinto
pjmlp at progtools.org
Thu Jan 31 02:33:31 PST 2013
On Wednesday, 30 January 2013 at 20:22:11 UTC, Jacob Carlborg
wrote:
> On 2013-01-30 17:26, deadalnix wrote:
>
>> The code is in C in the example. But if you replace the C code
>> by
>> another D module, the exact same reasoning holds.
>>
>> What point are you trying to make by raising that ? It seems
>> completely
>> irrelevant to me. Or I didn't inferred the part of the
>> reasoning that
>> was implied in your post. Please make it explicit.
>
> If you have a public and a private function in the same module,
> it's possible to implement the two functions in two separate
> object files. The private function must then be available in
> the object file to link the program properly.
This is why most languages with modules do have their own linker,
instead of relying on the 70's constraints of C linkers.
--
Paulo
More information about the Digitalmars-d-announce
mailing list