From owner-svn-src-head@freebsd.org Wed Mar 16 07:24:18 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0DBAFAD242C; Wed, 16 Mar 2016 07:24:18 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CEB101F49; Wed, 16 Mar 2016 07:24:17 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 1597B1FE024; Wed, 16 Mar 2016 08:24:12 +0100 (CET) Subject: Re: svn commit: r296880 - in head: share/man/man9 sys/kern sys/sys To: Don Lewis , glebius@FreeBSD.org References: <201603152156.u2FLuDPJ035986@gw.catspoiler.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org From: Hans Petter Selasky Message-ID: <56E90AC3.50802@selasky.org> Date: Wed, 16 Mar 2016 08:26:59 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <201603152156.u2FLuDPJ035986@gw.catspoiler.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.21 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: Wed, 16 Mar 2016 07:24:18 -0000 On 03/15/16 22:56, Don Lewis wrote: > How can you do a CTASSERT() on something that isn't known at compile > time? > It can be part of the API, that some arguments cannot be variables. It makes typechecking and other checking easier. Gleb: I'll test and submit an array size assert for the static sysctl u64 array version. --HPS