Fun: Shooting yourself in the foot in D

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 27 13:43:38 PDT 2016


On Thursday, 27 October 2016 at 19:59:09 UTC, Steven 
Schveighoffer wrote:
> On 10/27/16 3:49 PM, Ali Çehreli wrote:
>>
>>   
>> http://www.toodarkpark.org/computers/humor/shoot-self-in-foot.html
>>
>> Some entries for reference:
>>
>> C
>> - You shoot yourself in the foot.
>> - You shoot yourself in the foot and then nobody else can 
>> figure out
>> what you did.
>>
>> C++
>> - You accidentally create a dozen instances of yourself and 
>> shoot them
>> all in the foot. Providing emergency medical assistance is 
>> impossible
>> since you can't tell which are bitwise copies and which are 
>> just
>> pointing at others and saying, "That's me, over there."
>>
>> Python
>> - You shoot yourself in the foot and then brag for hours about 
>> how much
>> more elegantly you did it than if you had been using C or (God 
>> forbid)
>> Perl.
>>
>> What would the entry for D be? :)
>
> You create a large meta-template library called footMassage, 
> which then ends up via compiler inference compiling into a gun 
> instead.
>
> -Steve

You would never shoot youtself in the foot. after 5 minutes the 
compiler dies with an OOM.



More information about the Digitalmars-d mailing list