Phobos: __FILE__ as template default parameter

Johan Engelen via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 19 15:13:48 PDT 2016


On Sunday, 19 June 2016 at 21:40:20 UTC, David Nadlinger wrote:
> On Sunday, 19 June 2016 at 21:13:00 UTC, Johan Engelen wrote:
>> On Sunday, 19 June 2016 at 21:11:59 UTC, Johan Engelen wrote:
>>> (I think we can pretty much inline anything the user throws 
>>> at us)
>>
>> (as long as it is not a naked asm function)
>
> Another example is `alloca`, which you might not want to inline.

And also variadic functions, for which Dicebot needs __FILE__ to 
be a template param..............


More information about the Digitalmars-d mailing list