Fun: Shooting yourself in the foot in D

Chris via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 28 03:35:42 PDT 2016


On Friday, 28 October 2016 at 09:55:34 UTC, Patric Dexheimer 
wrote:
> On Friday, 28 October 2016 at 09:29:41 UTC, Chris wrote:
>> On Friday, 28 October 2016 at 01:25:55 UTC, Kirill Kryukov 
>> wrote:
>>
>>>
>>> You shoot yourself in a tuple containing your foot, boot and 
>>> sock.
>>
>> Cannot implicitly convert expression (map(shoot(foot))) of 
>> type MapResult to std.ouch.InputRange!limb
>
> You create the bullet in your foot for efficiency (CTFE).

You shoot yourself in the foot, but it doesn't matter, it was 
allocated on the stack.


More information about the Digitalmars-d mailing list