From owner-freebsd-current@FreeBSD.ORG Tue Nov 9 08:58:39 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A78416A4CE; Tue, 9 Nov 2004 08:58:39 +0000 (GMT) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id C978343D48; Tue, 9 Nov 2004 08:58:38 +0000 (GMT) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id E2F0D5310; Tue, 9 Nov 2004 09:58:37 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id E24B2530A; Tue, 9 Nov 2004 09:58:30 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id C9956B861; Tue, 9 Nov 2004 09:58:30 +0100 (CET) To: Yuval Levy References: From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Tue, 09 Nov 2004 09:58:30 +0100 In-Reply-To: (Yuval Levy's message of "Tue, 09 Nov 2004 00:36:40 -0500") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.64 cc: freebsd-current@freebsd.org cc: Andre Oppermann Subject: Re: FreeBSD 6.0 and onwards X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2004 08:58:39 -0000 Yuval Levy writes: > A currency converter function is part of a web based application plattfor= m: > converted_amount =3D conversion (original_amount, original_currency, > converted_currency). Then we realized we might also need to format the > conversion for display. Introduce a fourth argument, a bolean > (format/non-format). The new function was converted_amount =3D conversion > (original_amount, original_currency, converted_currency, format). By test= ing > if the fourth argument exists and defaulting to the original behaviour if= it > does not we upgraded without breaking the applications. You were using a language (Perl, PHP, Java, whatever) which allows you to do that. C does not (at least not easily). We can and do provide backward compatibility for the kernel-userland interface (system calls), but we can't easily provide it for internal kernel APIs. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no