Thread overview
Some fun: how to shoot yourself in the foot in D?
Feb 08, 2007
Lionello Lunesu
Feb 08, 2007
Lionello Lunesu
Feb 08, 2007
Alexander Panek
Feb 08, 2007
Tom S
Feb 08, 2007
Vladimir Panteleev
Feb 08, 2007
Bradley Smith
Feb 18, 2007
Serg Kovrov
February 08, 2007
Everybody should know this "joke" by now:

http://www.fullduplex.org/humor/2006/10/how-to-shoot-yourself-in-the-foot-in-any-programming-language/

So, how would you shoot yourself in the foot in D?

L.
February 08, 2007
Lionello Lunesu wrote:
> Everybody should know this "joke" by now:
> 
> http://www.fullduplex.org/humor/2006/10/how-to-shoot-yourself-in-the-foot-in-any-programming-language/ 
> 
> 
> So, how would you shoot yourself in the foot in D?
> 
> L.

First entry:

Blue Man  Oct 4th, 2006 at 10:39 am

D
You shoot yourself in the foot in two linse using a builtin Gun and Bullet[].

The experience is so enjoyable you shoot yourself again….
February 08, 2007
Lionello Lunesu wrote:
> D
> You shoot yourself in the foot in two linse using a builtin Gun and Bullet[].
> 
> The experience is so enjoyable you shoot yourself again….

LOL great one :D
February 08, 2007
Lionello Lunesu wrote:
> Everybody should know this "joke" by now:
> 
> http://www.fullduplex.org/humor/2006/10/how-to-shoot-yourself-in-the-foot-in-any-programming-language/ 
> 
> 
> So, how would you shoot yourself in the foot in D?

foreach (toe; foot) mixin(`shoot();`);
February 08, 2007
On Thu, 08 Feb 2007 13:30:53 +0200, Lionello Lunesu <lio@lunesu.remove.com> wrote:

> Everybody should know this "joke" by now:
>
> http://www.fullduplex.org/humor/2006/10/how-to-shoot-yourself-in-the-foot-in-any-programming-language/
>
> So, how would you shoot yourself in the foot in D?

While not as funny, I found this in a forum post a while ago:

> C++: "If you shoot yourself in the foot, it's your own fault."
> Java: "You may not do anything that could potentially result in getting shot in the foot. If it makes your job harder, too bad."
> C#: "You may not do anything that could potentially result in getting shot in the foot. But if you really need that restriction lifted, just say so."
> D: "If you shoot yourself in the foot, it's your own fault. But safety measures have been implemented to make it less likely and less painful."

( from http://forums.indiegamer.com/showpost.php?p=37058&postcount=8 )

-- 
Best regards,
  Vladimir                          mailto:thecybershadow@gmail.com
February 08, 2007
Lionello Lunesu wrote:
> Everybody should know this "joke" by now:
> 
> http://www.fullduplex.org/humor/2006/10/how-to-shoot-yourself-in-the-foot-in-any-programming-language/ 
> 
> 
> So, how would you shoot yourself in the foot in D?
> 
> L.

You can't decide which bullets to load in your gun: DMD/Phobos bullets, DMD/Tango bullets, GDC/Phobos bullets, or GDC/Tango bullets. After deciding, you discover that the bullets are not compatible with the scope library which is already mounted on the gun. However, the gun is shiny and new, and looks great hanging on the wall waiting to be used.



February 18, 2007
Bradley Smith wrote:
> You can't decide which bullets to load in your gun: DMD/Phobos bullets, DMD/Tango bullets, GDC/Phobos bullets, or GDC/Tango bullets. After deciding, you discover that the bullets are not compatible with the scope library which is already mounted on the gun. However, the gun is shiny and new, and looks great hanging on the wall waiting to be used.

That's a good one! =)

-- 
serg.