嘱 Tiib,
> Non-virtual destructor and virtual member function called
> "Destructor" seem like pointless over-engineering with
> wrappers. Isn't that mess?
Nope. You think you are seeing, nonwithstanding me *obviously* still
being busy with it, a finished product.
> Why there can't be just virtual destructor?
Good question, and one I had already lined up to ask after my current,
'this' argument related, question was answered.
Yes, it was/is my intention to have the "~ExternalObject" destructor replace
the "Destructor" function. That I have both is because of that.
Actually, I thought that both the constructor as well as destructor where
mandated. I didn't directly realize that that does not seem to be the case
for a pure virtual (never instanciated) object. I do now. :-)
But you can read all about it in my next question/thread.
> Note "may be". Lack of information what you want to achieve
> with all that can not help me any to understand what you want. ;-)
Just assume that what I'm asking is what I "want". No more, no less. That
should be much easier than to try to second-guess what I *really* want, no ?
:-)
As I mentioned, I've encountered to many responders which went off on
tangents and left me rather frustrated as a result to want to give anyone
that chance again.
Just take yourself: Instead of concentrating on answering the question I
put forward you instead thought it was a good idea to make some
unsubstanciated "wrappers" and "bigger mess" claims (which both have
fizzeled out).
> I thought it was obvious. Text like "__stdcall" to every non-static
> member function is ugly and makes the whole thing harder to read
You're not serious there, are you ? I could say the exact same about the
"virtual" keyword (or any other), and it would be as silly.
But, do you have a better solution ? If not, are you sure you're not
just complaining because you can ?
So no, adding a single directive (to each of my virtual methods) is not what
I consider "a bigger mess", *especially not* when it does exactly what I
requested.
> ...and you won't still get some benefits that you might want
> (like be able to cast member function pointers into ordinary
> function pointers) without making it fragile.
I have *no* idea what you are talking about there. Are you again trying to
second-guess my intentions (regarding the code) maybe ? That would not be a
good idea you know. :-|
> If it does what you want then it is good. It was unclear from your post.
Was *what* unclear please ? And knowing what you now know I asked for how
could I have done better ?
Also, Kalle understood my question well enough to answer it with a single
line, even a single (key)word ...
And for the record, do you realize that, apart from the "Is it some sort of
joke?" remark in a post to Alf (which I should thank you for), you have only
given me grief ? Why ?
Regards,
Rudy Wieser
-- Origional message:
嘱 Tiib <
oot...@hot.ee> schreef in berichtnieuws
c05c1d5e-f3fd-4b92...@googlegroups.com...
On Thursday, 10 August 2017 15:36:02 UTC+3, R.Wieser wrote:
> 嘱 Tiib,