From owner-freebsd-hackers Fri Feb 23 12:32:29 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from gw.nectar.com (gw.nectar.com [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id 3DA9237B491 for ; Fri, 23 Feb 2001 12:32:27 -0800 (PST) (envelope-from nectar@nectar.com) Received: from hamlet.nectar.com (hamlet.nectar.com [10.0.1.102]) by gw.nectar.com (Postfix) with ESMTP id 1650818C91; Fri, 23 Feb 2001 14:32:26 -0600 (CST) Received: (from nectar@localhost) by hamlet.nectar.com (8.11.2/8.9.3) id f1NKWQm41652; Fri, 23 Feb 2001 14:32:26 -0600 (CST) (envelope-from nectar@spawn.nectar.com) Date: Fri, 23 Feb 2001 14:32:26 -0600 From: "Jacques A. Vidrine" To: Poul-Henning Kamp Cc: Warner Losh , freebsd-hackers@FreeBSD.ORG Subject: Re: portability sanity check Message-ID: <20010223143225.F41493@hamlet.nectar.com> Mail-Followup-To: "Jacques A. Vidrine" , Poul-Henning Kamp , Warner Losh , freebsd-hackers@FreeBSD.ORG References: <20010221102200.A93525@hamlet.nectar.com> <2210.982772911@critter> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <2210.982772911@critter>; from phk@critter.freebsd.dk on Wed, Feb 21, 2001 at 05:28:31PM +0100 X-Url: http://www.nectar.com/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Feb 21, 2001 at 05:28:31PM +0100, Poul-Henning Kamp wrote: > >Type-safety is a cruch for the weak-minded. ^^^^^ > As an old assembler programmer I couldn't agree more, but in a project > like FreeBSD we have to realize that not everybody is that. Heh, I was just cleaning out these message from my inbox, and I discovered that spell-checkers are a crutch for the weak-minded, too :-) Thanks for everyone's feedback. I decided that I'm quite happy to use type-punning for more-or-less primitive types when building comparison functions and the like. For more complex stuff, it seems simplest/clearest to use a `void *' for internal data, a la db. Cheers, -- Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message