[OT] Re: Does C++ suffer....

From: Goran Sliskovic (gsliskov_at_yahoo.com)
Date: 11/26/03


Date: Wed, 26 Nov 2003 14:15:09 +0100


"Roy Smith" <roy@panix.com> wrote in message
news:roy-9CCA85.18410825112003@reader2.panix.com...
> In article <87smkcavb3.fsf@morpheus.aub.dk>, Jacob Atzen <jacob@aub.dk>
> wrote:
>
> > Steve Haigh <steve_a_haigh@hotmail.com> writes:
...
> > How does one shoot oneself in the foot with a rope? ;-)
>
>
> foot.shoot (reinterpret_cast<gun> (rope))

I would do it a bit different:

reinterpret_cast<gun&> (rope).shoot(foot);

Goran