DIP22 : Private symbol visibility
Dicebot
m.strashun at gmail.com
Thu Jan 31 02:11:01 PST 2013
On Wednesday, 30 January 2013 at 20:22:11 UTC, Jacob Carlborg
wrote:
> 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.
Ugh, how can you split module into two source/object files? Naive
approach will result in linker error due to multiple definition
of ModuleInfo. I did not know it was possible, would have been
really cool to have.
More information about the Digitalmars-d-announce
mailing list