Re: Cross-module inlining with separate compilation?

2014-08-25 Thread ketmar via Digitalmars-d-learn
On Tue, 26 Aug 2014 04:49:17 + hane via Digitalmars-d-learn wrote: > No template hack needed now. unless you using gdc, for example. ;-) signature.asc Description: PGP signature

Re: Cross-module inlining with separate compilation?

2014-08-25 Thread hane via Digitalmars-d-learn
On Tuesday, 26 August 2014 at 04:34:39 UTC, ketmar via Digitalmars-d-learn wrote: On Mon, 25 Aug 2014 21:07:06 + ponce via Digitalmars-d-learn 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

Re: Cross-module inlining with separate compilation?

2014-08-25 Thread ketmar via Digitalmars-d-learn
On Mon, 25 Aug 2014 21:07:06 + ponce via Digitalmars-d-learn 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

Cross-module inlining with separate compilation?

2014-08-25 Thread ponce via Digitalmars-d-learn
Is there a way to have cross-module inlining but with separate compilation? Like with link-time generation in C++ compilers.