From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lynn Winebarger Newsgroups: gmane.lisp.guile.devel Subject: Re: SCM_PTR_LE ? Date: Thu, 1 Aug 2002 12:15:10 -0500 Sender: guile-devel-admin@gnu.org Message-ID: <0208011211330C.05101@locke.free-expression.org> References: <15682.60268.422843.138038@blauw.xs4all.nl> <15687.4663.59228.939494@blauw.xs4all.nl> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1028222311 18768 127.0.0.1 (1 Aug 2002 17:18:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 1 Aug 2002 17:18:31 +0000 (UTC) Cc: guile-devel@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17aJan-0004sa-00 for ; Thu, 01 Aug 2002 19:18:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17aJbK-0004sJ-00; Thu, 01 Aug 2002 13:19:02 -0400 Original-Received: from plounts.uits.indiana.edu ([129.79.1.73]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17aJae-0004jx-00 for ; Thu, 01 Aug 2002 13:18:20 -0400 Original-Received: from fontz.uits.indiana.edu (fontz.uits.indiana.edu [129.79.1.76]) by plounts.uits.indiana.edu (8.12.1/8.12.1/IUPO) with ESMTP id g71HIB1I012925; Thu, 1 Aug 2002 12:18:11 -0500 (EST) Original-Received: from locke.free-expression.org (dial-122-173.dial.indiana.edu [156.56.122.173]) by fontz.uits.indiana.edu (8.12.1/8.12.1/IUPO) with SMTP id g71HI9hM020548; Thu, 1 Aug 2002 12:18:10 -0500 (EST) Original-To: Marius Vollmer , hanwen@cs.uu.nl X-Mailer: KMail [version 1.2] In-Reply-To: Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:920 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:920 On Thursday 01 August 2002 11:40, Marius Vollmer wrote: > same array or a single block returned from malloc. A consequence > would be that you can not reliably test whether a pointer does point > into some object, since the results are not defined when it points > outside. For example, is the following guaranteed to print "sane"? > > char block1[100]; > char block2[100]; > > char *ptr = block1 + 50; > > if (ptr >= block2 && ptr < block2+100) > printf ("sane\n"); > else > printf ("insane\n"); > > I don't know. That would be not, as it prints insane on my athlon-based linux system. Now if you tried block2 + 150, or block1 - 50, we might have an interesting question. Lynn _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel