From owner-freebsd-standards Tue May 28 21: 3:58 2002 Delivered-To: freebsd-standards@freebsd.org Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by hub.freebsd.org (Postfix) with ESMTP id 4B0E637B400 for ; Tue, 28 May 2002 21:03:55 -0700 (PDT) Received: from strings.polstra.com (strings.polstra.com [206.213.73.20]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id g4T43op57073; Tue, 28 May 2002 21:03:50 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.5.1 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20020529050050.B30428@chiark.greenend.org.uk> Date: Tue, 28 May 2002 21:03:50 -0700 (PDT) Organization: Polstra & Co., Inc. From: John Polstra To: Tony Finch Subject: Re: Q&D implementation of dlfunc() Cc: Garrett Wollman , standards@freebsd.org Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Tony Finch wrote: > On Tue, May 28, 2002 at 08:32:35PM -0700, John Polstra wrote: >> Actually I think I'd prefer a pointer to the unique struct, but it >> doesn't really make any difference. > > It does -- consider the following: > > void *p = malloc(10); > dlfunc(NULL, "free")(p); Yep, you're right. I plead C++ brain pollution. :-} John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message