Topic: warning usage operator


Author: drax325 <draxlerm@gmail.com>
Date: Tue, 12 May 2015 18:42:59 -0700 (PDT)
Raw View
------=_Part_2255_1967393086.1431481379612
Content-Type: multipart/alternative;
 boundary="----=_Part_2256_1169883543.1431481379612"

------=_Part_2256_1169883543.1431481379612
Content-Type: text/plain; charset=UTF-8

I'm not sure if this would solve any problems, but I was thinking it might
be an alternative way of thinking about things.

A lot of programming time is spent on error checking/preventing.
A common tactic is to have if control statement to check before usage. Or
using exception handling.

what if there was an operator that you could overload, it doesn't have a
syntax operator , but it would be called any time the object is used. If
the operator is not defined the code would operate as it does today.

Whether it used in a function or assigned to another variable.

If a class does use throwing functions to warn about internal states, this
single operator could be a way to combine it into one location, and it
works for places outside of class definition.

Any opinion, just throwing things out there.

--

---
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 email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_2256_1169883543.1431481379612
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I'm not sure if this would solve any problems, but I was t=
hinking it might be an alternative way of thinking about things.<div><br></=
div><div>A lot of programming time is spent on error checking/preventing.&n=
bsp;</div><div>A common tactic is to have if control statement to check bef=
ore usage. Or using exception handling.&nbsp;</div><div><br></div><div>what=
 if there was an operator that you could overload, it doesn't have a syntax=
 operator , but it would be called any time the object is used. If the oper=
ator is not defined the code would operate as it does today.</div><div><br>=
</div><div>Whether it used in a function or assigned to another variable.</=
div><div><br></div><div>If a class does use throwing functions to warn abou=
t internal states, this single operator could be a way to combine it into o=
ne location, and it works for places outside of class definition.</div><div=
><br></div><div>Any opinion, just throwing things out there.&nbsp;</div></d=
iv>

<p></p>

-- <br />
<br />
--- <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 />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_2256_1169883543.1431481379612--
------=_Part_2255_1967393086.1431481379612--

.


Author: David Krauss <potswa@mac.com>
Date: Wed, 13 May 2015 10:17:56 +0800
Raw View
> On 2015=E2=80=9305=E2=80=9313, at 9:42 AM, drax325 <draxlerm@gmail.com> w=
rote:
>=20
> Any opinion, just throwing things out there.=20

This is one of the main current study focuses of the committee. See various=
 recent papers on contracts.

C++ should, when possible, avoid re-checking all invariants of a class. I t=
hink =E2=80=9Ccheck everything, all the time=E2=80=9D is sort of an unspoke=
n starting point from which a usable technique hopefully evolves.

--=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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/.

.


Author: Farid Mehrabi <farid.mehrabi@gmail.com>
Date: Wed, 13 May 2015 19:10:14 +0430
Raw View
--001a1146d778375cfa0515f7997d
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

2015-05-13 6:47 GMT+04:30 David Krauss <potswa@mac.com>:

>
> This is one of the main current study focuses of the committee. See
> various recent papers on contracts.
>
>
=E2=80=8BCan I ask for some links plz?

Regards,
FM.=E2=80=8B

--=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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/.

--001a1146d778375cfa0515f7997d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"rtl"><div class=3D"gmail_default" style=3D"text-align:left;font=
-family:&#39;arial narrow&#39;,sans-serif;font-size:large"><br></div><div c=
lass=3D"gmail_extra"><br><div class=3D"gmail_quote"><div dir=3D"ltr">2015-0=
5-13 6:47 GMT+04:30 David Krauss <span dir=3D"ltr">&lt;<a href=3D"mailto:po=
tswa@mac.com" target=3D"_blank">potswa@mac.com</a>&gt;</span>:</div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex"><span class=3D"">
<div style=3D"text-align:left"><br></div>
</span><div style=3D"text-align:left">This is one of the main current study=
 focuses of the committee. See various recent papers on contracts.</div>
<div style=3D"text-align:left"><br></div></blockquote><div style=3D"text-al=
ign:left"><br></div><div style=3D"text-align:left;font-family:&#39;arial na=
rrow&#39;,sans-serif;font-size:large" class=3D"gmail_default" dir=3D"ltr">=
=E2=80=8BCan I ask for some links plz?</div><div style=3D"text-align:left;f=
ont-family:&#39;arial narrow&#39;,sans-serif;font-size:large" class=3D"gmai=
l_default" dir=3D"ltr"><br></div><div style=3D"text-align:left;font-family:=
&#39;arial narrow&#39;,sans-serif;font-size:large" class=3D"gmail_default" =
dir=3D"ltr">Regards,</div><div style=3D"text-align:left;font-family:&#39;ar=
ial narrow&#39;,sans-serif;font-size:large" class=3D"gmail_default" dir=3D"=
ltr">FM.=E2=80=8B</div></div>
</div></div>

<p></p>

-- <br />
<br />
--- <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 />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--001a1146d778375cfa0515f7997d--

.


Author: David Krauss <potswa@mac.com>
Date: Thu, 14 May 2015 05:25:07 +0800
Raw View
--Apple-Mail=_C6716D65-7948-4C1E-A8A0-FE6CB60335DA
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8


> On 2015=E2=80=9305=E2=80=9313, at 10:40 PM, Farid Mehrabi <farid.mehrabi@=
gmail.com> wrote:
>=20
>=20
>=20
> 2015-05-13 6:47 GMT+04:30 David Krauss <potswa@mac.com <mailto:potswa@mac=
..com>>:
>=20
> This is one of the main current study focuses of the committee. See vario=
us recent papers on contracts.
>=20
>=20
> =E2=80=8BCan I ask for some links plz?

Start at http://open-std.org/jtc1/sc22/wg21/docs/papers/2014/ <http://open-=
std.org/jtc1/sc22/wg21/docs/papers/2014/> and http://open-std.org/jtc1/sc22=
/wg21/docs/papers/2015/ <http://open-std.org/jtc1/sc22/wg21/docs/papers/201=
5/> . Search for =E2=80=9Ccontract.=E2=80=9D There are too many to list.

--=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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/.

--Apple-Mail=_C6716D65-7948-4C1E-A8A0-FE6CB60335DA
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""><br class=3D""><di=
v><blockquote type=3D"cite" class=3D""><div class=3D"">On 2015=E2=80=9305=
=E2=80=9313, at 10:40 PM, Farid Mehrabi &lt;<a href=3D"mailto:farid.mehrabi=
@gmail.com" class=3D"">farid.mehrabi@gmail.com</a>&gt; wrote:</div><br clas=
s=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"rtl" class=3D""=
><div class=3D"gmail_default" style=3D"text-align:left;font-family:'arial n=
arrow',sans-serif;font-size:large"><br class=3D""></div><div class=3D"gmail=
_extra"><br class=3D""><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D=
"">2015-05-13 6:47 GMT+04:30 David Krauss <span dir=3D"ltr" class=3D"">&lt;=
<a href=3D"mailto:potswa@mac.com" target=3D"_blank" class=3D"">potswa@mac.c=
om</a>&gt;</span>:</div><blockquote class=3D"gmail_quote" style=3D"margin:0=
 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=3D"">
<div style=3D"text-align:left" class=3D""><br class=3D""></div>
</span><div style=3D"text-align:left" class=3D"">This is one of the main cu=
rrent study focuses of the committee. See various recent papers on contract=
s.</div>
<div style=3D"text-align:left" class=3D""><br class=3D""></div></blockquote=
><div style=3D"text-align:left" class=3D""><br class=3D""></div><div style=
=3D"text-align:left;font-family:'arial narrow',sans-serif;font-size:large" =
class=3D"gmail_default" dir=3D"ltr">=E2=80=8BCan I ask for some links plz?<=
/div></div></div></div></div></blockquote><br class=3D""></div><div>Start a=
t <a href=3D"http://open-std.org/jtc1/sc22/wg21/docs/papers/2014/" class=3D=
"">http://open-std.org/jtc1/sc22/wg21/docs/papers/2014/</a>&nbsp;and&nbsp;<=
a href=3D"http://open-std.org/jtc1/sc22/wg21/docs/papers/2015/" class=3D"">=
http://open-std.org/jtc1/sc22/wg21/docs/papers/2015/</a>&nbsp;. Search for =
=E2=80=9Ccontract.=E2=80=9D There are too many to list.</div></body></html>

<p></p>

-- <br />
<br />
--- <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 />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--Apple-Mail=_C6716D65-7948-4C1E-A8A0-FE6CB60335DA--

.