From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Korb Newsgroups: gmane.lisp.guile.devel Subject: Re: How do I determine the argument type... Date: Sun, 18 May 2003 17:34:17 -0700 Organization: Home Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <3EC82689.6A652B72@veritas.com> References: <3EBC71BF.B2264C7@veritas.com> <874r3t5o1f.fsf@zagadka.ping.de> <3EC6A6CA.94855664@veritas.com> <87of213tk0.fsf@zagadka.ping.de> <87ptmfx0i3.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1053304093 21859 80.91.224.249 (19 May 2003 00:28:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 19 May 2003 00:28:13 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon May 19 02:28:11 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19HYVf-0005gQ-00 for ; Mon, 19 May 2003 02:28:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19HYXC-0007II-08 for guile-devel@m.gmane.org; Sun, 18 May 2003 20:29:46 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19HYX1-0007F5-00 for guile-devel@gnu.org; Sun, 18 May 2003 20:29:35 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19HYWo-00076h-00 for guile-devel@gnu.org; Sun, 18 May 2003 20:29:22 -0400 Original-Received: from bay-bridge.veritas.com ([143.127.3.10] helo=mtvmime02.veritas.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19HYTU-0003gY-00 for guile-devel@gnu.org; Sun, 18 May 2003 20:25:56 -0400 Original-Received: from megami (unverified) by mtvmime02.veritas.com (Content Technologies SMTPRS 4.3.6) with SMTP id ; Sun, 18 May 2003 17:27:37 -0700 Original-Received: from veritas.com ([172.22.12.211]) (1593 bytes) by megami via sendmail with P:esmtp/R:smart_host/T:smtp (sender: ) id for ; Sun, 18 May 2003 17:25:46 -0700 (PDT) (Smail-3.2.0.101 1997-Dec-17 #15 built 2001-Aug-30) X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.19-4GB i686) X-Accept-Language: en Original-To: Kevin Ryde X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2406 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2406 Kevin Ryde wrote: > > Marius Vollmer writes: > > > > Ahh, I see. Yes, it was not a good thing to change gh_new2str that > > way. I'm not sure what to do about this. Changing this back is just > > as bad as the original change from int to size_t. > > The manual still says "int". Maybe call it a bug fix and put it back > to that. > > Or making it a macro could hide the variation for plain calls, which > is presumably most usages. A macro cannot hide the problem. You cannot set it back to int without breaking everyone who adapted to size_t. The best choice is to just say, "Oops. Sorry. Either reject Guile 1.4 or use this configury macro to specify the type passed to gh_scm2newstr()." Or, alternatively, always pass NULL as the second argument. Don't go back, though. Thanks! _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel