www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Some fun: how to shoot yourself in the foot in D?

reply Lionello Lunesu <lio lunesu.remove.com> writes:
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.
Feb 08 2007
next sibling parent reply Lionello Lunesu <lio lunesu.remove.com> writes:
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-p
ogramming-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….
Feb 08 2007
parent Alexander Panek <a.panek brainsware.org> writes:
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
Feb 08 2007
prev sibling next sibling parent Tom S <h3r3tic remove.mat.uni.torun.pl> writes:
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-p
ogramming-language/ 
 
 
 So, how would you shoot yourself in the foot in D?

foreach (toe; foot) mixin(`shoot();`);
Feb 08 2007
prev sibling next sibling parent "Vladimir Panteleev" <thecybershadow gmail.com> writes:
On Thu, 08 Feb 2007 13:30:53 +0200, Lionello Lunesu <lio lunesu.remove.c=
om> wrote:

 Everybody should know this "joke" by now:

 http://www.fullduplex.org/humor/2006/10/how-to-shoot-yourself-in-the-f=

 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 gettin=

 C#: "You may not do anything that could potentially result in getting =

ay so."
 D: "If you shoot yourself in the foot, it's your own fault. But safety=

" ( from http://forums.indiegamer.com/showpost.php?p=3D37058&postcount=3D8= ) -- = Best regards, Vladimir mailto:thecybershadow gmail.com
Feb 08 2007
prev sibling parent reply Bradley Smith <digitalmars-com baysmith.com> writes:
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-p
ogramming-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.
Feb 08 2007
parent Serg Kovrov <kovrov no.spam> writes:
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.
Feb 18 2007