From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoD5V-000510-Sy for qemu-devel@nongnu.org; Mon, 19 Oct 2015 12:15:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoD5Q-000562-UC for qemu-devel@nongnu.org; Mon, 19 Oct 2015 12:15:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoD5Q-00055o-Po for qemu-devel@nongnu.org; Mon, 19 Oct 2015 12:15:00 -0400 From: Markus Armbruster References: <1444968943-11254-1-git-send-email-eblake@redhat.com> <1444968943-11254-3-git-send-email-eblake@redhat.com> Date: Mon, 19 Oct 2015 18:14:58 +0200 In-Reply-To: <1444968943-11254-3-git-send-email-eblake@redhat.com> (Eric Blake's message of "Thu, 15 Oct 2015 22:15:27 -0600") Message-ID: <87oafun8cd.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v9 02/17] qapi: Reserve '*List' type names for arrays List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, Michael Roth Eric Blake writes: > We already reserved '*Kind' for implicit enums (since commit "We reserved '*Kind' since" sounds odd. Present tense? > 4dc2e69), but failed to reserve '*List' for array types. Since > no QMP was yet using it, we might as well make the reservation > official. Uhm, how can we fail to reserve something, and then make the reservation official? I think what you're trying to say is something like Type names ending in 'List' can clash with array types in generated C. We don't currently use such names. Outlaw them. Precedence: commit 4dc2e69 outlawed names ending in 'Kind', because they can clash with implicit enum types of unions. > Note that this forbids creation of new types or commands ending > in 'List', but does NOT forbid abuse of attempts like ['intList'] > for creating a 2-dimensional array of 'int'. Really? If I write ['T'], then T must be a declared type, mustn't it? And after this patch, I cant declare type intList, can I? > The whole idea of > multi-dimensional arrays needs more design thought, best left for > another day. > > Signed-off-by: Eric Blake Patch looks good to me.