Cross-module inlining with separate compilation?

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 25 21:34:29 PDT 2014


On Mon, 25 Aug 2014 21:07:06 +0000
ponce via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> wrote:

> Is there a way to have cross-module inlining but with separate 
> compilation?
> Like with link-time generation in C++ compilers.
i think that turning your functions into templates should do the trick.
i.e. int myfunc (int  n) --> int myfunc() (int n).

but this is a hack, of course.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20140826/f1008f95/attachment.sig>


More information about the Digitalmars-d-learn mailing list