From: elathan@phys.uoa.gr
To: Glynn Clements <glynn.clements@virgin.net>
Cc: Steven Shaw <steven_shaw@iprimus.com.au>,
linux-c-programming@vger.kernel.org
Subject: Re: mixing C/C++
Date: Tue, 25 Nov 2003 15:12:28 +0200 [thread overview]
Message-ID: <1069765948.3fc3553ce0ef8@webmail.uoa.gr> (raw)
In-Reply-To: <16323.16426.473841.162971@cerise.nosuchdomain.co.uk>
Quoting Glynn Clements <glynn.clements@virgin.net>:
> It works fine for me:
[snipped]
> wrap_foo_dump(f);
> wrap_bar_dump2(f);
>
> return 0;
> }
Up to that point yes. But if you try to call dump3() (exactly with the code you
have pasted) you wan't get "Taz Hello", but "Bar Hello". This strange behaviour
will not happen, if you subistute the virtual methods with ordinary ones.
Regards,
Elias
next prev parent reply other threads:[~2003-11-25 13:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-24 11:10 mixing C/C++ Elias Athanasopoulos
2003-11-24 12:18 ` Steven Shaw
2003-11-24 17:55 ` Elias Athanasopoulos
2003-11-25 2:21 ` Steven Shaw
2003-11-25 10:49 ` elathan
2003-11-25 11:42 ` Glynn Clements
2003-11-25 13:12 ` elathan [this message]
2003-11-26 2:09 ` Glynn Clements
2003-12-02 18:22 ` Elias Athanasopoulos
2003-11-25 16:32 ` Steven Shaw
2003-11-24 18:44 ` Dari'o Mariani
-- strict thread matches above, loose matches on Subject: below --
2003-11-08 9:30 Elias Athanasopoulos
2003-11-08 13:36 ` James Stevenson
2003-11-10 15:00 ` Matthew Studley
2003-11-10 17:37 ` Elias Athanasopoulos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1069765948.3fc3553ce0ef8@webmail.uoa.gr \
--to=elathan@phys.uoa.gr \
--cc=glynn.clements@virgin.net \
--cc=linux-c-programming@vger.kernel.org \
--cc=steven_shaw@iprimus.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).