From owner-svn-src-head@freebsd.org Thu Feb 27 22:45:08 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C1B25251F6A for ; Thu, 27 Feb 2020 22:45:08 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic305-3.consmr.mail.bf2.yahoo.com (sonic305-3.consmr.mail.bf2.yahoo.com [74.6.133.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48T76B3QR7z4S1d for ; Thu, 27 Feb 2020 22:45:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: G00wc4YVM1kYd.zI9c182nOEGTl0sTJt5tg.Y2s_1wrqN6yZR7Bc67YWj7vu3tw LcpWlJsK7vVAkAvl5utHQIElc7g5tSoXIzXX4EAMFv7fMmxu_QNLjI4ElpsDtVSEphzQ5PXX4oKY JsV0VZm1u058WUC9jtcvFBgLhFUQbUh2iqJcfoM7RwzQ.EUg4rdZC8OU2aNRMu53T7GiBgJaPWyp lC3Fkj.fk3Il_jGjY88_Ad9AVZOna5GGFmcOir06qTBHr7gWJWgxsmMa8qiWGdzKKpANs8XwrsqD MAxFN6wt23lQ0wPZnMlyP0UyGpYDVzCcqnZr1durAisu7bppj1Z7KEcMsWEe9NZiKshf_ea6JzxT LRTEaT2ho0a84LckKJmS8RKIpA1TPcEB9taGTM9c_KwpZ_1BQTYBzaLXsI4lgLLcca4eTjJsrMxr zI1UG1dOr_J4dPUCER0ol8Pi64HjrX2VZGiICgS6j4mvOOzWUKHUe8irEpqYszh5LvoBUp91A4Hk cTnEXmXPM_nXRqkdC1Go2vXuD5qGL71ikEH_Cmgn8o7UDdTUW.YBq0xAi_Nl.BUWmBQ.SErToBpY lK1dtpw2y.Xjyb6Sd7_l3hRR9HLMhGjywh4afzMc8s8MipNPvDMOcYFmDb3mPrZze9pxQtmzYM3U xr924LIVuz.75XX5aJK6YORZmWDnPgwto8SxOM8aMkuago0ISXA2Mvr40cuohASw9kKjehcUZ.Lt RpqKuBxRWEpdHdNN8sBzG38J7QKhrOE4.gpsRhPe4UgGFXAqBOk5WonvbLLyvmyOi_eIHe1d0gp4 ujKoxIUg.pu.H4RD4DXIIPowZ.OlgbjP_uVlVII.EhVOtgzlVLPjru4ZntkTQUuy5oE1sDVxHPLY nQvNn9zn9q6eCGJ6UnNhxZE4yrsrsHWqt0DUW7H2P_9TGmZ.sFev27ierjlY1fySaA38OGj7N5f6 WjTXzHEoq7EvtTMEqpeGlUptO7aWVnvYbJWoiP_._ex5xdSQNQ3PcoDmNA1n8O.hGM3WYae4Wjfj fTTiG1gBMcwRtFV8GmGJ_LgkGiltQQDsozmlA2QkOFQ8B0zqkTikGFHx2EKNL8TggduC0k0hIqjc 87P8PmcYFiCCXf_0WUrqWlf5TG4_HUOyQBpQNOq1I_6Bg5JqWJKBoP2w7XfPdakBkwBVomN_LnOW G2b_muyEsPVG.iyKqNIkR0HhMYplN7Gtj79fsozdA0FtPW2qUuqoq7_L.qlASP8m91DUOwz4z3mJ 1NmH9C2zhvmFrW7AVk._9POK9pkbTnfUmgd9Ygjxq6IAOzbXsVpvVCLgWXkFR4QUamoCdpneElLh VN_dCyJBNVTSZR_EvKiUMT9Ix6mEwoNPFrM5IujekogBZa0eG8GnFEN0pGMlNNZ73YBeQFMYxO2z jHYdU81wkjv2u4a7r4T9SnEI- Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Thu, 27 Feb 2020 22:45:04 +0000 Received: by smtp414.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID d4a57e2133a3ea4ed1cedac2f056cbd1; Thu, 27 Feb 2020 22:45:03 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: svn commit: r358392 - head/share/man/man9 Message-Id: <217D39BA-4FDC-490C-8490-533D244E79CE@yahoo.com> Date: Thu, 27 Feb 2020 14:45:02 -0800 Cc: Warner Losh To: John Baldwin , svn-src-head@freebsd.org X-Mailer: Apple Mail (2.3608.60.0.2.5) References: <217D39BA-4FDC-490C-8490-533D244E79CE.ref@yahoo.com> X-Rspamd-Queue-Id: 48T76B3QR7z4S1d X-Spamd-Bar: - X-Spamd-Result: default: False [-1.68 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.39)[-0.393,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-0.78)[-0.784,0]; TO_DN_SOME(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[42.133.6.74.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:26101, ipnet:74.6.128.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[ip: (3.38), ipnet: 74.6.128.0/21(1.30), asn: 26101(1.04), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2020 22:45:08 -0000 John Baldwin jhb at FreeBSD.org wrote on Thu Feb 27 16:55:01 UTC 2020: > On 2/27/20 7:30 AM, Warner Losh wrote: > > Author: imp > > Date: Thu Feb 27 15:30:13 2020 > > New Revision: 358392 > > URL: https://svnweb.freebsd.org/changeset/base/358392 > >=20 > > Log: > > _Static_assert is to be preferred to CTASSERT. > > =20 > > Document the existing prefernce that _Static_assert be used in = preference to the > > old CTASSERT we used to use for compile time assertions. >=20 > Actually, I think what we want to use is static_assert(). The = intention in > userland C is that _Static_assert() is an internal keyword and = > adds static_assert() as an alias, similar to defining = alignas, > etc. I think what we should do for the kernel is have = define > map static_assert to _Static_assert and replace existing = _Static_assert > usage with the proper spelling. >=20 Be warned static_assert is a C++ keyword as of C++11. c++11 added: static_assert(bool_constexpr,message) c++17 added: static_assert(bool_constexpr) C11 added _Static_assert(expression,message) C2x gets _Static_assert(expression) C11 added "#define static_assert _Static_assert" to It makes for a bit of a mess in code to be allowed to be processed by both C and C++. The wording may need to specify enough to tell what to do for such code and the headers may need logic to cause that context to exist across both languages when the header is allowed for both. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)