From: Ian Jackson Subject: Re: [PATCH 13/15] libxl: make LIBXL_INIT_GC a statement, not an initialiser Date: Thu, 8 Dec 2011 19:15:30 +0000 Message-ID: <20193.3282.375698.782405@mariner.uk.xensource.com> References: <1323108621-22654-1-git-send-email-ian.jackson@eu.citrix.com> <1323108621-22654-14-git-send-email-ian.jackson@eu.citrix.com> <1323275646.2969.5.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1323275646.2969.5.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH 13/15] libxl: make LIBXL_INIT_GC a statement, not an initialiser"): > On Mon, 2011-12-05 at 18:10 +0000, Ian Jackson wrote: > > In fact there is only one caller now, GC_INIT, > > Maybe we should just fold LIBXL_INIT_GC into GC_INIT then? No, because GC_INIT is a non-hygienic convenience macro. Such things should never be the only implementation of some important interface, because then if for any reason the lack of hygiene is a problem for you you are stuck. LIBXL_INIT_GC is the underlying functionality which may need to be used in those other, less usual cases, and therefore still needs to exist as a separate interface. Indeed in my asynchronous operations code (patch(es) still very much a work in progress) I will need to call LIBXL_INIT_GC outside GC_INIT. Ian.