From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.devel Subject: Re: Passing C pointers through guile Date: Fri, 11 Jul 2008 09:05:14 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215781545 22744 80.91.229.12 (11 Jul 2008 13:05:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jul 2008 13:05:45 +0000 (UTC) Cc: guile-devel@gnu.org To: "Kjetil S. Matheussen" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Jul 11 15:06:31 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KHIKH-0000sD-4z for guile-devel@m.gmane.org; Fri, 11 Jul 2008 15:06:17 +0200 Original-Received: from localhost ([127.0.0.1]:58640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHIJP-0004Nc-FQ for guile-devel@m.gmane.org; Fri, 11 Jul 2008 09:05:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KHIJJ-0004NN-1o for guile-devel@gnu.org; Fri, 11 Jul 2008 09:05:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KHIJH-0004NB-GX for guile-devel@gnu.org; Fri, 11 Jul 2008 09:05:15 -0400 Original-Received: from [199.232.76.173] (port=47891 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KHIJH-0004N8-Aj for guile-devel@gnu.org; Fri, 11 Jul 2008 09:05:15 -0400 Original-Received: from fnord.ir.bbn.com ([192.1.100.210]:50184) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KHIJG-0002q9-Vv for guile-devel@gnu.org; Fri, 11 Jul 2008 09:05:15 -0400 Original-Received: by fnord.ir.bbn.com (Postfix, from userid 10853) id 6F85452A5; Fri, 11 Jul 2008 09:05:14 -0400 (EDT) X-Hashcash: 1:20:080711:guile-devel@gnu.org::mKML0LzSjIE9h+bN:00000000000000000000000000000000000000000020Bj X-Hashcash: 1:20:080711:k.s.matheussen@notam02.no::mKML0LzSjIE9h+bN:0000000000000000000000000000000000005akB In-Reply-To: (Kjetil S. Matheussen's message of "Wed, 9 Jul 2008 22:09:49 +0200 (CEST)") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (berkeley-unix) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:7366 Archived-At: "Kjetil S. Matheussen" writes: > Also, various types of non-gc pointers are stored in integers in > all of the rt-*.scm files in http://snd.cvs.sourceforge.net/snd/cvs-snd/ > and many others (xg.c, etc.). It would be horribly idiotic > to write smurf's for all of those, or at least a common smurf, when a > single integer is enough. What fraction of these uses are actually correct? Have people run this code on Windows 64 (which is LLP64, but on which long is 32 bits), sparc64, and alpha. I'm always worried when people store pointers in integers - it's IMHO basically a wrong thing to do.