220 11733 <CAOU91OM=TacsGX4HQR8G8ppte+BE2tO0imAaaZDKY0V-MVvyKg@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: =?UTF-8?Q?Klaim_=2D_Jo=C3=ABl_Lamotte?= <mjklaim@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Value constraints (or contract programming in C++)
Date: Wed, 9 Jul 2014 17:21:47 +0200
Lines: 132
Approved: news@gmane.org
Message-ID: <CAOU91OM=TacsGX4HQR8G8ppte+BE2tO0imAaaZDKY0V-MVvyKg@mail.gmail.com>
References: <fb0e45e5-4838-453e-8da7-70a4d8c00d32@isocpp.org>
	<CAFk2RUYJap9GeX+DBoPOY1vyFVkHatetfgs5jAcM8D2Wm+KMrQ@mail.gmail.com>
	<befe0668-7ce5-4a0e-8004-d23c89dcbb1c@isocpp.org>
	<CAOU91OOuM9HOSTNo-NvbCGrnENoStNSi=KbtJ+B0yovjM1F-DQ@mail.gmail.com>
	<CAOU91OOPe-bTz5Z8U8r9T1YTiF_9q0sKp97_miBys+0hQhB=gg@mail.gmail.com>
	<CAOU91OOOiWWm=kOcGRth0CJCw8Y9ZSU3pnyUx7wyAiAZPTphtg@mail.gmail.com>
	<CAOenAXjEuy0dcdzok7MO9SfGBe4Sxh1Pkbe=5WrYBE95xU+9hg@mail.gmail.com>
	<CALd5_cnqmXnvKe7E+tGiLLnVTE=uPHW8y-nCG_EBZt+dmgsH=g@mail.gmail.com>
	<6da50966-e3d3-441d-8474-614a51b035df@isocpp.org>
	<CALd5_c=kub9jCZt_O9jdHKfAN6gboSDmGmT7Quvf_qsetjL_RQ@mail.gmail.com>
	<CAOU91OOabesn1e+nh4bqjgK3FyAxpYX4G73dEH5436bzW3iq0A@mail.gmail.com>
	<3D5B2169-72D6-473E-87DF-32D6D159A455@gmail.com>
	<CAOU91ONR1jWo_qgi6QvJxFT=DmSJb7XR5LmjSQ4h_mFXNrFR8A@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=089e01227f0448f69904fdc44430
X-Trace: ger.gmane.org 1404919318 27966 80.91.229.3 (9 Jul 2014 15:21:58 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 9 Jul 2014 15:21:58 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBD3NR2WQQ4IBBDF46WOQKGQENFGP6EI@isocpp.org Wed Jul 09 17:21:52 2014
Return-path: <std-proposals+bncBD3NR2WQQ4IBBDF46WOQKGQENFGP6EI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qa0-f69.google.com ([209.85.216.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBD3NR2WQQ4IBBDF46WOQKGQENFGP6EI@isocpp.org>)
	id 1X4tgr-0004xc-KV
	for gclcip-std-proposals@m.gmane.org; Wed, 09 Jul 2014 17:21:49 +0200
Original-Received: by mail-qa0-f69.google.com with SMTP id v10sf3180720qac.8
        for <gclcip-std-proposals@m.gmane.org>; Wed, 09 Jul 2014 08:21:48 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type;
        bh=HBmQ2+DpMFx++H8bB2OD1nYsWZnHVURiL2G26bwWTng=;
        b=hIFumEsgaTJ67LfhC9eZAQAiXCNw/+QgiiecaM548vQBYnvfdJaknWmChGVNrMur2C
         Ayag2eqfCmyXjzebo4iLBiOWupgk5BI1Cd70OmTeC/gHn3dNu2d4xkb4ksSXcEtxDWPw
         f8ZhkVJUpN2gVi8cC0UFQvKlkljBQy/dw/ym3pexakxr3PHbBfCl547CsLgAVGvc7+yO
         a4pAut77YAZiYOERarO/o51VUx3Tq/YkuItkQWsWRnj6vAhIfzri7xKxkTdgMUAG7Ixx
         6Im+CXRHPfefV0FnfUnQWCPiWEJSMsH5TeivwqFUpaOCy65d/G1Hiob8QQw82mEbWuzr
         G6NA==
X-Gm-Message-State: ALoCoQkwlBxahRaflZPWr5FxUA9ZkxscxpTvmMQ43Raih1bok1h2nVLMeCfoEVJ0L6yeH7C6X8MF
X-Received: by 10.236.31.40 with SMTP id l28mr17528957yha.34.1404919308811;
        Wed, 09 Jul 2014 08:21:48 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.58.83 with SMTP id o19ls1254324obq.78.gmail; Wed, 09 Jul
 2014 08:21:48 -0700 (PDT)
X-Received: by 10.60.34.7 with SMTP id v7mr48755527oei.9.1404919308028;
        Wed, 09 Jul 2014 08:21:48 -0700 (PDT)
Original-Received: from mail-oa0-x230.google.com (mail-oa0-x230.google.com [2607:f8b0:4003:c02::230])
        by mx.google.com with ESMTPS id uq9si63971361obc.92.2014.07.09.08.21.48
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 09 Jul 2014 08:21:48 -0700 (PDT)
Received-SPF: pass (google.com: domain of mjklaim@gmail.com designates 2607:f8b0:4003:c02::230 as permitted sender) client-ip=2607:f8b0:4003:c02::230;
Original-Received: by mail-oa0-f48.google.com with SMTP id m1so2331112oag.7
        for <std-proposals@isocpp.org>; Wed, 09 Jul 2014 08:21:47 -0700 (PDT)
X-Received: by 10.60.79.68 with SMTP id h4mr33839988oex.7.1404919307890; Wed,
 09 Jul 2014 08:21:47 -0700 (PDT)
Original-Received: by 10.76.19.20 with HTTP; Wed, 9 Jul 2014 08:21:47 -0700 (PDT)
In-Reply-To: <CAOU91ONR1jWo_qgi6QvJxFT=DmSJb7XR5LmjSQ4h_mFXNrFR8A@mail.gmail.com>
X-Original-Sender: mjklaim@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of mjklaim@gmail.com designates 2607:f8b0:4003:c02::230 as permitted
 sender) smtp.mail=mjklaim@gmail.com;       dkim=pass header.i=@gmail.com;
       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:11733
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/11733>

--089e01227f0448f69904fdc44430
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

To clarify, I'm talking only about the decision of how to handle
a detected contract failure, assuming that the contract checking is
actually running.
Something close to set_terminate() but as I was saying there would be a
"need" to have one per "library".

Something close to NDEBUG would be for compile/link-time choice that is
generating, or not, the contract checking code, which is more obvious to
imagine from current
classic assertion macro implementations.


On Wed, Jul 9, 2014 at 5:17 PM, Klaim - Jo=C3=ABl Lamotte <mjklaim@gmail.co=
m>
wrote:

>
> On Wed, Jul 9, 2014 at 3:45 PM, David Krauss <potswa@gmail.com> wrote:
>
>>
>> On 2014=E2=80=9307=E2=80=9309, at 9:09 PM, Klaim - Jo=C3=ABl Lamotte <mj=
klaim@gmail.com>
>> wrote:
>>
>> > Another=E2=80=8B point was raised few months ago on Boost mailing list=
,
>> relative to the Centralized error checking feature from the related pape=
rs:
>> > its often more useful to the user to be able to specify/change error
>> handling (or not) behaviour for a specific library (or several) rather t=
han
>> for the whole application.
>> > I have no specific suggestion of how this could be made possible but I
>> think it's an interesting point to maybe
>> > explore in future papers related to yours (but I guess it's too early
>> to explore now).
>>
>> Is there anything to do differently than NDEBUG applied to linked
>> libraries, and whatever equivalent library-specific flags that might
>> control debugging in inline functions?
>
>
> If we are talking about a decision taken at runtime, then yes it's totall=
y
> different.
>
>
>

--=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/.

--089e01227f0448f69904fdc44430
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">To clarify, I&#39;m talking only about the decision of how=
 to handle a=C2=A0detected=C2=A0contract failure, assuming that the contrac=
t checking is actually running.<div>Something close to set_terminate() but =
as I was saying there would be a &quot;need&quot; to have one per &quot;lib=
rary&quot;.</div>
<div><br></div><div>Something close to NDEBUG would be for compile/link-tim=
e choice that is generating, or not, the contract checking code, which is m=
ore obvious to imagine from current=C2=A0</div><div>classic assertion macro=
 implementations.</div>
</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Wed,=
 Jul 9, 2014 at 5:17 PM, Klaim - Jo=C3=ABl Lamotte <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:mjklaim@gmail.com" target=3D"_blank">mjklaim@gmail.com</a>&=
gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_extra">=
<br><div class=3D"gmail_quote"><div class=3D"">On Wed, Jul 9, 2014 at 3:45 =
PM, David Krauss <span dir=3D"ltr">&lt;<a href=3D"mailto:potswa@gmail.com" =
target=3D"_blank">potswa@gmail.com</a>&gt;</span> wrote:<br>

</div><div class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br>
On 2014=E2=80=9307=E2=80=9309, at 9:09 PM, Klaim - Jo=C3=ABl Lamotte &lt;<a=
 href=3D"mailto:mjklaim@gmail.com" target=3D"_blank">mjklaim@gmail.com</a>&=
gt; wrote:<br>
<br>
&gt; Another=E2=80=8B point was raised few months ago on Boost mailing list=
, relative to the Centralized error checking feature from the related paper=
s:<br>
&gt; its often more useful to the user to be able to specify/change error h=
andling (or not) behaviour for a specific library (or several) rather than =
for the whole application.<br>
&gt; I have no specific suggestion of how this could be made possible but I=
 think it&#39;s an interesting point to maybe<br>
&gt; explore in future papers related to yours (but I guess it&#39;s too ea=
rly to explore now).<br>
<br>
</div></div>Is there anything to do differently than NDEBUG applied to link=
ed libraries, and whatever equivalent library-specific flags that might con=
trol debugging in inline functions?</blockquote></div></div><br>If we are t=
alking about a decision taken at runtime, then yes it&#39;s totally differe=
nt.=C2=A0</div>

<div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra"><br></div><=
/div>
</blockquote></div><br></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 />

--089e01227f0448f69904fdc44430--

.
