From: Ian Jackson Subject: Re: [PATCH RFC 2/9] libxl idl: allow implicit enum values Date: Wed, 24 Jun 2015 16:08:17 +0100 Message-ID: <21898.51169.991017.184003@mariner.uk.xensource.com> References: <1435153656-19485-1-git-send-email-rob.hoes@citrix.com> <1435153656-19485-3-git-send-email-rob.hoes@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z7mJa-0005K4-Ju for xen-devel@lists.xenproject.org; Wed, 24 Jun 2015 15:10:14 +0000 In-Reply-To: <1435153656-19485-3-git-send-email-rob.hoes@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Rob Hoes Cc: xen-devel@lists.xenproject.org, euan.harris@citrix.com List-Id: xen-devel@lists.xenproject.org Rob Hoes writes ("[PATCH RFC 2/9] libxl idl: allow implicit enum values"): > Introducing two special enum values: > * ENUM_NEXT: equal to the previous value in the enum plus 1 > * ENUM_PREV: equal to the previous value in the enum minus 1 > > This makes it a little easier to maintain enums for which we do not care too > much about the exact enum values. It means that enum values can't be looked up without compiling the code. It also means that deleting an old enum value would result in unexpected and undesirable changes to subsequent enums. So I'm afraid I don't agree with this approach. Thanks, Ian.