Fun: Shooting yourself in the foot in D

A D dev via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 27 14:14:43 PDT 2016


On Thursday, 27 October 2016 at 19:49:16 UTC, 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? :)
>
> Ali

1) You pre-shoot the bullet while the gun is being made - for 
efficiency (CTFE). As a result, it misses the foot, which has not 
grown yet.

2) From that link:

http://www.toodarkpark.org/computers/humor/shoot-self-in-foot.html

this one is good:

Concurrent Euclid:

You shoot yourself in somebody else's foot.




More information about the Digitalmars-d mailing list