Re: Erroneous "auto can only be used for template function parameters"?

2015-06-20 Thread Yuxuan Shui via Digitalmars-d-learn
On Sunday, 21 June 2015 at 01:26:51 UTC, Adam D. Ruppe wrote: On Saturday, 20 June 2015 at 01:50:11 UTC, Yuxuan Shui wrote: auto ref R) is indeed a template function, so I don't understand. But R is not a parameter on the function itself. It comes from the outside template. Move it to the i

Re: Erroneous "auto can only be used for template function parameters"?

2015-06-20 Thread Yuxuan Shui via Digitalmars-d-learn
On Sunday, 21 June 2015 at 01:26:51 UTC, Adam D. Ruppe wrote: On Saturday, 20 June 2015 at 01:50:11 UTC, Yuxuan Shui wrote: auto ref R) is indeed a template function, so I don't understand. But R is not a parameter on the function itself. It comes from the outside template. Move it to the i

Re: Erroneous "auto can only be used for template function parameters"?

2015-06-20 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 20 June 2015 at 01:50:11 UTC, Yuxuan Shui wrote: auto ref R) is indeed a template function, so I don't understand. But R is not a parameter on the function itself. It comes from the outside template. Move it to the inside template, rewrite it as: auto a(S, R)(auto ref R

Re: pass by value && elide dtor + post-blit

2015-06-20 Thread Ali Çehreli via Digitalmars-d-learn
On 06/20/2015 02:09 PM, Xiaoxi wrote: When passing a struct by value: Is there any way to trick the compiler to elide unnecessary post-blit & dtor pair? Maybe using an union, somehow? Can you show with an example please. I don't see either of those called for the following program: import

pass by value && elide dtor + post-blit

2015-06-20 Thread Xiaoxi via Digitalmars-d-learn
When passing a struct by value: Is there any way to trick the compiler to elide unnecessary post-blit & dtor pair? Maybe using an union, somehow?

Re: best way to interface D code to Excel

2015-06-20 Thread Laeeth Isharc via Digitalmars-d-learn
On Friday, 19 June 2015 at 21:06:31 UTC, Jesse Phillips wrote: On Wednesday, 17 June 2015 at 18:35:36 UTC, Laeeth Isharc wrote: Hi. I know D has support for COM - not sure of its status. And there was a Microsoft chap who posted here a couple of years back - wonderful templated code that mad

Re: OT - civility in a professional environment

2015-06-20 Thread Laeeth Isharc via Digitalmars-d-learn
On Saturday, 20 June 2015 at 11:23:21 UTC, Kagamin wrote: Our management tries to apply best practices, it works most of the time. When you have sensitive, smart, and creative people, one should expect sometimes more sturm and drang - and the question is what one does with that energy once it

Re: OT - civility in a professional environment

2015-06-20 Thread Kagamin via Digitalmars-d-learn
Our management tries to apply best practices, it works most of the time.