inlining...

Manu turkeyman at gmail.com
Fri Mar 14 21:16:52 PDT 2014


On 15 March 2014 04:02, Michel Fortin <michel.fortin at michelf.ca> wrote:

> On 2014-03-14 17:57:59 +0000, Jacob Carlborg <doob at me.com> said:
>
>  int output = mixin func(10); // the 'mixin' keyword seems to kinda 'get
>>>
>>
>> I think this is the best syntax of these three alternatives.
>>
>
> Maybe, but what does it do? Should it just inline the call to func? Or
> should it inline recursively every call inside func? Or maybe something in
> the middle?


I'd say it should inline only func. Any sub-calls are subject to the
regular inline heuristics.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140315/95a5f3d2/attachment.html>


More information about the Digitalmars-d mailing list