220 40956 <41c14b27-fa17-4b8c-a565-d2a445657f99@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: yakitori1010@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Is C++ must need the finalizer? do you think?
Date: Sun, 11 Nov 2018 03:20:44 -0800 (PST)
Lines: 151
Approved: news@gmane.org
Message-ID: <41c14b27-fa17-4b8c-a565-d2a445657f99@isocpp.org>
References: <b4adbcd6-b84f-498b-87b4-305543009d82@isocpp.org>
 <01da2507-f069-48bb-9980-024ca148e1c3@isocpp.org> <CAD_7Vbksh_erks-_G9x=i17YPy4fFmWpPKvhP9Jj_sBZk3S6-A@mail.gmail.com>
 <59cd5315-4bc3-4d9f-a317-7fe278468f2d@isocpp.org>
 <CAKgx6BKzEVMDdp4NqV+jOXn05pMEUjHxfXRDVQr0UtKYtuBbzg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_31_1691392694.1541935244736"
X-Trace: blaine.gmane.org 1541935120 8945 195.159.176.226 (11 Nov 2018 11:18:40 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 11 Nov 2018 11:18:40 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDD7HZ424QGBBDNBUDPQKGQEADEHYQY@isocpp.org Sun Nov 11 12:18:36 2018
Return-path: <std-proposals+bncBDD7HZ424QGBBDNBUDPQKGQEADEHYQY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw1-f69.google.com ([209.85.161.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDD7HZ424QGBBDNBUDPQKGQEADEHYQY@isocpp.org>)
	id 1gLnlE-0002FW-Mh
	for gclcip-std-proposals@m.gmane.org; Sun, 11 Nov 2018 12:18:36 +0100
Original-Received: by mail-yw1-f69.google.com with SMTP id j69-v6sf6045488ywb.19
        for <gclcip-std-proposals@m.gmane.org>; Sun, 11 Nov 2018 03:20:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=3W8l3Izxa+hq0vQinlLxsklPnubFw9z0Smlgi8GFyPk=;
        b=LzaL67rVpboH6DQ2Je9kaEQGYL3Ta5UHiiO6qQLGCYKz9uiMocKlBfKRzmFd9K4CC3
         jKEz7zYdMWlwBVl8FoCAZqqra7rOGOllcEhzQpblXZb+YdHi1DpmzSEAMJPCOb6b6M20
         n8NC6tkakixoc2DodbETq9/HjS9PSNn+12a60hCG2118Q3YUwMYKV8Vvx7u+xyacUd02
         H6cixIp1e/kpV/B1kDcdYytRog86AQnzMta95lZSmPEgjTsWvfYxzd9iM5nA48T8NBwt
         ccXT1eClhVvb4V3dY8Yvj92vf81qHItfNgP2Ai/T5wiiQfoYZ28antfFtt7y9z3uuXIM
         EouQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=3W8l3Izxa+hq0vQinlLxsklPnubFw9z0Smlgi8GFyPk=;
        b=KayiqchF22OG+YieM10fYe3KROASOte3JQ4aNiK67Lv/ajLwlziFwlDauByrdx4yOY
         3z+pAhGya4HT2pHj7SbHamj0Mplj9sU3uYDS4fP3csNT9lVl0buAD1dSzn92T1kYRQaL
         3iOMiFB20gbKJXYM1k66znOndTUaolK77MxOsL5pql4320SFu4XAtbDrSAE3mbS0irjq
         n0xRLcyXqjUh2+lkGo9ZVEJmJ1uDNOoO1VcZH+Ia55X1lSXA/OFuuCWg80OC+32UODqm
         MADaTHHMBXyZgO+INDNUUIuxDILosVeweZouU4F90Q5ZLIpeyrRuN3iSXJX547JJNkcn
         5iiQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=3W8l3Izxa+hq0vQinlLxsklPnubFw9z0Smlgi8GFyPk=;
        b=bYaTz8USe7BPzOOxOhIaUVkRyGTNhmE4u93S+Z4d4/99KA+3pI4NuThCX8IhS3A8oi
         wDSQD4r24JwSmsGRAgEovFSpMgL9rHPsIK3s/knM3i+FZ0uxkq5AsOUJba8gm7PAMLTK
         1qMbnPqVAjWgZxbTXG5C2F8R0jBY0+F4kylFTUaWcRtgpXrzqHi/6ewI+2Vdgo0cwR3y
         Yfec3WAUf8sjKQAi1nOW8jK+cEDOORLXZAEOMdK5xbEIRcq7Ymrf8JLypxBTrs6fqicM
         FW/vvPziRbLBEoN2/uJ9GduutRnbWb8gy8pf0V0SZdEA4qG4yZCRNocAYbBLwT3/dFzM
         6D9w==
X-Gm-Message-State: AGRZ1gJVd/A9klakdQtExlN0glA6E3XY2WucKXBdicWRIhbYzYFi6caf
	yqFmJ0AXfRzL7o3LeRgV9q9xjQ==
X-Google-Smtp-Source: AJdET5fIlypwXdTCK4504dW3BFTKFi/cm8+uivaou6masCEaUMyYGG8L22TDGD3YmD9GFW6g8kqo6Q==
X-Received: by 2002:a25:4157:: with SMTP id o84-v6mr8167599yba.0.1541935246650;
        Sun, 11 Nov 2018 03:20:46 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a25:5012:: with SMTP id e18-v6ls2394668ybb.13.gmail; Sun, 11
 Nov 2018 03:20:45 -0800 (PST)
X-Received: by 2002:a25:50cd:: with SMTP id e196-v6mr153703ybb.0.1541935245463;
        Sun, 11 Nov 2018 03:20:45 -0800 (PST)
In-Reply-To: <CAKgx6BKzEVMDdp4NqV+jOXn05pMEUjHxfXRDVQr0UtKYtuBbzg@mail.gmail.com>
X-Original-Sender: yakitori1010@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:40956
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40956>

------=_Part_31_1691392694.1541935244736
Content-Type: multipart/alternative; 
	boundary="----=_Part_32_1313025903.1541935244736"

------=_Part_32_1313025903.1541935244736
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

thank you for your opinion.
i study the one thing. so good.
and sorry to like parrot to say.
is the variable to be?=20

2018=E5=B9=B411=E6=9C=8811=E6=97=A5=E6=97=A5=E6=9B=9C=E6=97=A5 19=E6=99=821=
6=E5=88=8604=E7=A7=92 UTC+9 Domen Vrankar:
>
> V V ned., 11. nov. 2018 ob 09:54 je oseba <yakito...@gmail.com=20
> <javascript:>> napisala:
>
>> thank you for your opinion.
>>
>> i have one more question.
>>
>> static object is always static and binding in that?
>> will that have to free timing?
>> where is this?
>>
>> i think non free static object is out way the lifecycle theory.
>> lifecycle is halting promise.
>> if you can not break the old garbege.so you hate it.
>> halting  promise is clear the that problem.yes!
>>
>> and the finalizer is solve it.so i think.=20
>>
>
> Static objects are no different from dynamic objects in this regard. If=
=20
> you need to call a static method you can create a scoped object and call =
it=20
> inside of the destructor like you would do inside a finally segment.
> The advantage of not having a finally is that you don't need to indent=20
> with a try block just for the sake of it:
>
> try
> {
>    // code
> }
> finally
> {
>    // all the indentations here are useless noise needed because we want =
a=20
> finally block
> }
>
> Here's an old thread on this topic:=20
> https://groups.google.com/a/isocpp.org/forum/#!topic/std-discussion/AApn0=
B6MsHg
>
> There is also a proposal to standardize such scope guards:=20
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0052r9.pdf
>
> Regards,
> Domen
>
>
>

--=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/41c14b27-fa17-4b8c-a565-d2a445657f99%40isocpp.or=
g.

------=_Part_32_1313025903.1541935244736
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>thank you for your opinion.</div><div>i study the one=
 thing. so good.</div><div>and sorry to like parrot to say.</div><div>is th=
e variable to be?=C2=A0</div><br>2018=E5=B9=B411=E6=9C=8811=E6=97=A5=E6=97=
=A5=E6=9B=9C=E6=97=A5 19=E6=99=8216=E5=88=8604=E7=A7=92 UTC+9 Domen Vrankar=
:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;bo=
rder-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr"><div dir=3D"=
ltr"><div dir=3D"ltr">V V ned., 11. nov. 2018 ob 09:54 je oseba &lt;<a onmo=
usedown=3D"this.href=3D&#39;javascript:&#39;;return true;" onclick=3D"this.=
href=3D&#39;javascript:&#39;;return true;" href=3D"javascript:" target=3D"_=
blank" rel=3D"nofollow" gdf-obfuscated-mailto=3D"Rjuk-HtaBQAJ">yakito...@gm=
ail.com</a>&gt; napisala:<br><div class=3D"gmail_quote"><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>thank you for your o=
pinion.</div><div><br></div><div>i have one more question.</div><div><br></=
div><div>static object is always static and binding in that?</div><div>will=
 that have to free timing?</div><div>where is this?</div><div><br></div><di=
v>i think non free static object is out way the lifecycle theory.</div><div=
>lifecycle is halting promise.</div><div>if you can not break the old garbe=
ge.so you hate it.</div><div>halting=C2=A0 promise is clear the that proble=
m.yes!</div><div><br></div><div>and the finalizer is solve it.so i think. <=
br></div></div></blockquote><div><br></div><div>Static objects are no diffe=
rent from dynamic objects in this regard. If you need to call a static meth=
od you can create a scoped object and call it inside of the destructor like=
 you would do inside a finally segment.</div><div>The advantage of not havi=
ng a finally is that you don&#39;t need to indent with a try block just for=
 the sake of it:</div><div><br></div><div>try</div><div>{</div><div>=C2=A0=
=C2=A0 // code<br></div><div>}</div><div>finally</div><div>{</div><div>=C2=
=A0=C2=A0 // all the indentations here are useless noise needed because we =
want a finally block<br></div><div>}<br></div><div><br></div><div>Here&#39;=
s an old thread on this topic: <a onmousedown=3D"this.href=3D&#39;https://g=
roups.google.com/a/isocpp.org/forum/#!topic/std-discussion/AApn0B6MsHg&#39;=
;return true;" onclick=3D"this.href=3D&#39;https://groups.google.com/a/isoc=
pp.org/forum/#!topic/std-discussion/AApn0B6MsHg&#39;;return true;" href=3D"=
https://groups.google.com/a/isocpp.org/forum/#!topic/std-discussion/AApn0B6=
MsHg" target=3D"_blank" rel=3D"nofollow">https://groups.google.com/a/<wbr>i=
socpp.org/forum/#!topic/std-<wbr>discussion/AApn0B6MsHg</a></div><div><br><=
/div><div>There is also a proposal to standardize such scope guards: <a onm=
ousedown=3D"this.href=3D&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fww=
w.open-std.org%2Fjtc1%2Fsc22%2Fwg21%2Fdocs%2Fpapers%2F2018%2Fp0052r9.pdf\x2=
6sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtJ_SfL_OcCdu3Pv2Kz8U7jbJr2Q&#39;;ret=
urn true;" onclick=3D"this.href=3D&#39;http://www.google.com/url?q\x3dhttp%=
3A%2F%2Fwww.open-std.org%2Fjtc1%2Fsc22%2Fwg21%2Fdocs%2Fpapers%2F2018%2Fp005=
2r9.pdf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFtJ_SfL_OcCdu3Pv2Kz8U7jbJr2=
Q&#39;;return true;" href=3D"http://www.open-std.org/jtc1/sc22/wg21/docs/pa=
pers/2018/p0052r9.pdf" target=3D"_blank" rel=3D"nofollow">http://www.open-s=
td.org/jtc1/<wbr>sc22/wg21/docs/papers/2018/<wbr>p0052r9.pdf</a></div><div>=
<br></div><div>Regards,</div><div>Domen<br></div><div><br></div><div> <br><=
/div></div></div></div></div>
</blockquote></div>

<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/41c14b27-fa17-4b8c-a565-d2a445657f99%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/41c14b27-fa17-4b8c-a565-d2a445657f99=
%40isocpp.org</a>.<br />

------=_Part_32_1313025903.1541935244736--

------=_Part_31_1691392694.1541935244736--

.
