Topic: Fwd: Overriding virtual functions of member class


Author: Bryce Glover <randomdsdevel@gmail.com>
Date: Sun, 12 Nov 2017 19:48:21 -0500
Raw View
--Apple-Mail=_E0AE5530-F13C-4172-A304-93FD58BA3954
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"

Re-sending this without quoting this thread=E2=80=99s starting post since i=
t looks like it got truncated in the Google Groups web interface when sent =
with it: =20

> Begin forwarded message:
>=20
> From: Bryce Glover <RandomDSdevel@gmail.com>
> Subject: Re: Overriding virtual functions of member class
> Date: November 11, 2017 at 7:48:21 PM EST
> To: ambrop7@gmail.com
> Cc: std-proposals@isocpp.org
>=20
>> (snipped=E2=80=A6)
>=20
>      If a lurker like myself might chime in (rather belatedly, though, an=
d I apologize for that,) I=E2=80=99d like to add that what you want here gi=
ves off a faint hint of smelling something a bit like a limited, static ver=
sion of =E2=80=98method swizzling,=E2=80=99 <https://www.google.com/search?=
num=3D30&client=3Dsafari&rls=3Den&q=3DObjective-C+method+swizzling&spell=3D=
1&sa=3DX&ved=3D0ahUKEwj82eyqjvPTAhUKiFQKHfLDBu8QvwUIJCgA&biw=3D1920&bih=3D1=
041>  a sleight of hand available to programmers using the=C2=A0Objective-C=
 language <https://en.wikipedia.org/wiki/Objective-C>.  From what I can rem=
ember about method swizzling, however, using it is=E2=80=A6not often a good=
 idea, as it can be easy to get wrong and hard to debug when you do.  Addit=
ionally, whether one could implement a compile-time version of that (mis?)f=
eature in C++ without also architecting static analogs to the various piece=
s of dynamic machinery that enable the technique=E2=80=99s use in Objective=
-C, regardless of any other use cases for such an undertaking, I can=E2=80=
=99t currently say. =20
>=20
> Just something to keep in mind,=20
>      Bryce Glover
>      RandomDSdevel@gmail.com <mailto:RandomDSdevel@gmail.com>
(The message looked OK in the digest I got recently, but there the quoted t=
ext was truncated, so I=E2=80=99m not sure what is going on here=E2=80=A6sh=
rug.) =20

--=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/503F1F13-F5C7-4E79-BF78-F3EBAF9D8C69%40gmail.com=
..

--Apple-Mail=_E0AE5530-F13C-4172-A304-93FD58BA3954
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="UTF-8"

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html charset=
=3Dutf-8"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space;" class=3D"">Re-sending this wi=
thout quoting this thread=E2=80=99s starting post since it looks like it go=
t truncated in the Google Groups web interface when sent with it: &nbsp;<br=
 class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div c=
lass=3D"">Begin forwarded message:</div><br class=3D"Apple-interchange-newl=
ine"><div style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px;" class=3D""><span style=3D"font-family: -webkit-system-fo=
nt, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=
=3D""><b class=3D"">From: </b></span><span style=3D"font-family: -webkit-sy=
stem-font, Helvetica Neue, Helvetica, sans-serif;" class=3D"">Bryce Glover =
&lt;<a href=3D"mailto:RandomDSdevel@gmail.com" class=3D"">RandomDSdevel@gma=
il.com</a>&gt;<br class=3D""></span></div><div style=3D"margin-top: 0px; ma=
rgin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=3D""><span st=
yle=3D"font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-se=
rif; color:rgba(0, 0, 0, 1.0);" class=3D""><b class=3D"">Subject: </b></spa=
n><span style=3D"font-family: -webkit-system-font, Helvetica Neue, Helvetic=
a, sans-serif;" class=3D""><b class=3D"">Re:  Overriding virtual functions =
of member class</b><br class=3D""></span></div><div style=3D"margin-top: 0p=
x; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=3D""><sp=
an style=3D"font-family: -webkit-system-font, Helvetica Neue, Helvetica, sa=
ns-serif; color:rgba(0, 0, 0, 1.0);" class=3D""><b class=3D"">Date: </b></s=
pan><span style=3D"font-family: -webkit-system-font, Helvetica Neue, Helvet=
ica, sans-serif;" class=3D"">November 11, 2017 at 7:48:21 PM EST<br class=
=3D""></span></div><div style=3D"margin-top: 0px; margin-right: 0px; margin=
-bottom: 0px; margin-left: 0px;" class=3D""><span style=3D"font-family: -we=
bkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0=
, 1.0);" class=3D""><b class=3D"">To: </b></span><span style=3D"font-family=
: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=3D""><=
a href=3D"mailto:ambrop7@gmail.com" class=3D"">ambrop7@gmail.com</a><br cla=
ss=3D""></span></div><div style=3D"margin-top: 0px; margin-right: 0px; marg=
in-bottom: 0px; margin-left: 0px;" class=3D""><span style=3D"font-family: -=
webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0,=
 0, 1.0);" class=3D""><b class=3D"">Cc: </b></span><span style=3D"font-fami=
ly: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=3D""=
><a href=3D"mailto:std-proposals@isocpp.org" class=3D"">std-proposals@isocp=
p.org</a><br class=3D""></span></div><br class=3D""><div class=3D""><meta h=
ttp-equiv=3D"Content-Type" content=3D"text/html charset=3Dutf-8" class=3D""=
><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space;" class=3D""><div class=3D""><blockquote type=3D=
"cite" class=3D""><div class=3D"">(snipped=E2=80=A6)</div></blockquote></di=
v><br class=3D""><div class=3D"">&nbsp; &nbsp; &nbsp;If a lurker like mysel=
f might chime in (rather belatedly, though, and I apologize for that,) I=E2=
=80=99d like to add that what you want here gives off a faint hint of smell=
ing something a bit like a limited, static version of&nbsp;<a href=3D"https=
://www.google.com/search?num=3D30&amp;client=3Dsafari&amp;rls=3Den&amp;q=3D=
Objective-C+method+swizzling&amp;spell=3D1&amp;sa=3DX&amp;ved=3D0ahUKEwj82e=
yqjvPTAhUKiFQKHfLDBu8QvwUIJCgA&amp;biw=3D1920&amp;bih=3D1041" class=3D"">=
=E2=80=98method swizzling,=E2=80=99</a>&nbsp; a sleight of hand available t=
o programmers using&nbsp;<a href=3D"https://en.wikipedia.org/wiki/Objective=
-C" class=3D"">the&nbsp;Objective-C language</a>. &nbsp;From what I can rem=
ember about method swizzling, however, using it is=E2=80=A6not often a good=
 idea, as it can be easy to get wrong and hard to debug when you do. &nbsp;=
Additionally, whether one could implement a compile-time version of that (m=
is?)feature in C++ without also architecting static analogs to the various =
pieces of dynamic machinery that enable the technique=E2=80=99s use in Obje=
ctive-C, regardless of any other use cases for such an undertaking, I can=
=E2=80=99t currently say. &nbsp;</div><br class=3D""><div class=3D"">
<div style=3D"letter-spacing: normal; orphans: auto; text-align: start; tex=
t-indent: 0px; text-transform: none; white-space: normal; widows: auto; wor=
d-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -web=
kit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=3D""><d=
iv style=3D"letter-spacing: normal; orphans: auto; text-align: start; text-=
indent: 0px; text-transform: none; white-space: normal; widows: auto; word-=
spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webki=
t-nbsp-mode: space; -webkit-line-break: after-white-space;" class=3D""><div=
 style=3D"letter-spacing: normal; orphans: auto; text-align: start; text-in=
dent: 0px; text-transform: none; white-space: normal; widows: auto; word-sp=
acing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-=
nbsp-mode: space; -webkit-line-break: after-white-space;" class=3D""><div c=
lass=3D"">Just something to keep in mind,&nbsp;</div><div class=3D"">&nbsp;=
 &nbsp; &nbsp;Bryce Glover</div><div class=3D"">&nbsp; &nbsp; &nbsp;<a href=
=3D"mailto:RandomDSdevel@gmail.com" class=3D"">RandomDSdevel@gmail.com</a><=
/div></div></div></div></div></div></div></blockquote></div><br class=3D"">=
<div class=3D"">(The message looked OK in the digest I got recently, but <i=
 class=3D"">there</i>&nbsp;the quoted text was truncated, so I=E2=80=99m no=
t sure <i class=3D"">what</i>&nbsp;is going on here=E2=80=A6<i class=3D"">s=
hrug</i>.) &nbsp;</div></body></html>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/503F1F13-F5C7-4E79-BF78-F3EBAF9D8C69%=
40gmail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/503F1F13-F5C7-4E79-BF78-F3EBAF9D8C69%=
40gmail.com</a>.<br />

--Apple-Mail=_E0AE5530-F13C-4172-A304-93FD58BA3954--

.