On 2011-06-15 20:11, Robert Clipsham wrote:
On 15/06/2011 16:15, Andrei Alexandrescu wrote:
pragma(lib) doesn't (and can't) work as it is, why do you want to add
more useless pragmas?

Then we should yank it or change it. That pragma was defined in a
completely different context from today's, and right now we have a much
larger user base to draw experience and insight from.

Note that rebuild had pragma(link) which got around this problem - it
was the build tool, it could keep track of all of these without
modifying object files or other such hackery. So I guess pragma(lib)
could be fixed in the hypothetical tool.

It's too bad that pragma(lib) doesn't behave like pragma(link), it's quite an easy fix as well. It's also unnecessary to have two tools reading the same files, the build tool for reading pragma(link) and the compiler for reading the whole file to compile it.

--
/Jacob Carlborg

Reply via email to