From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: stefan Newsgroups: gmane.lisp.guile.devel Subject: Re: srfe records in reworked match Date: Fri, 23 Apr 2010 09:52:42 +0200 Message-ID: <201004230952.42913.stefan.tampe@spray.se> References: <201004201514.18375.stefan.tampe@spray.se> <878w8hkxky.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272011801 9821 80.91.229.12 (23 Apr 2010 08:36:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Apr 2010 08:36:41 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Apr 23 10:36:40 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O5ENM-0002Et-0l for guile-devel@m.gmane.org; Fri, 23 Apr 2010 10:36:40 +0200 Original-Received: from localhost ([127.0.0.1]:33375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5ENL-0003wR-Fn for guile-devel@m.gmane.org; Fri, 23 Apr 2010 04:36:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5EIR-0001z2-Rz for guile-devel@gnu.org; Fri, 23 Apr 2010 04:31:35 -0400 Original-Received: from [140.186.70.92] (port=41820 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5EIQ-0001yD-2n for guile-devel@gnu.org; Fri, 23 Apr 2010 04:31:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5EIP-0007qA-9L for guile-devel@gnu.org; Fri, 23 Apr 2010 04:31:34 -0400 Original-Received: from spsmtp02oc.mail2world.com ([74.202.142.198]:3988) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5EIP-0007pp-5G for guile-devel@gnu.org; Fri, 23 Apr 2010 04:31:33 -0400 Original-Received: from mail pickup service by spsmtp02oc.mail2world.com with Microsoft SMTPSVC; Fri, 23 Apr 2010 01:31:31 -0700 auth-sender: stefan.tampe@spray.se Original-Received: from 82.182.254.46 unverified ([82.182.254.46]) by spsmtp02oc.mail2world.com with Mail2World SMTP Server; Fri, 23 Apr 2010 01:31:29 -0700 User-Agent: KMail/1.12.4 (Linux/2.6.31.12-0.2-desktop; KDE/4.3.5; x86_64; ; ) In-Reply-To: <878w8hkxky.fsf@gnu.org> X-OriginalArrivalTime: 23 Apr 2010 08:31:31.0190 (UTC) FILETIME=[6011F160:01CAE2BF] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ 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:10294 Archived-At: On Wednesday 21 April 2010 10:40:29 am Ludovic Court=C3=A8s wrote: > As noted in Shinn=E2=80=99s match-cond-expand.scm, this record matching f= orm is > not ideal: >=20 > ;; Annoying unhygienic record matching. Record patterns look like > ;; ($ record fields...) > ;; where the record name simply assumes that the same name suffixed > ;; with a "?" is the correct predicate. >=20 Entering, scheme@(guile-user)> (macroexpand '(n? x)) (if (struct? x) (eq? (struct-vtable x) n) #f) So, I just tok the expanded line directly instead of n?.=20 /Stefan