From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noah Lavine Newsgroups: gmane.lisp.guile.devel Subject: Re: [Guile-commits] GNU Guile branch, wip-compiler, updated. v2.1.0-139-gf8a333e Date: Sun, 25 Dec 2011 10:05:13 -0500 Message-ID: References: <87ipldh29m.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1324841415 12539 80.91.229.12 (25 Dec 2011 19:30:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 25 Dec 2011 19:30:15 +0000 (UTC) Cc: guile-devel@gnu.org To: =?ISO-8859-1?Q?Ludovic_Court=E8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Dec 25 20:30:10 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Retlp-0004Je-MV for guile-devel@m.gmane.org; Sun, 25 Dec 2011 20:30:09 +0100 Original-Received: from localhost ([::1]:51534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Retlp-0000Sb-7n for guile-devel@m.gmane.org; Sun, 25 Dec 2011 14:30:09 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:44162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RepdT-0007M5-P1 for guile-devel@gnu.org; Sun, 25 Dec 2011 10:05:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RepdS-000464-L2 for guile-devel@gnu.org; Sun, 25 Dec 2011 10:05:15 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:40336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RepdS-00045z-Ho; Sun, 25 Dec 2011 10:05:14 -0500 Original-Received: by iacb35 with SMTP id b35so18797172iac.0 for ; Sun, 25 Dec 2011 07:05:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=AM3ptjbbNqrvMFR7Q8buCC9De+dV2s/zdHuzJ2vD2EI=; b=OGoc9B8ET08uaniAUrM20kr2CJbzZ2U9CHHfueC/wthIDqfRAbafoSdEQNV+joytvW AYlnjhaSuwhZBqS3N8uY3Bsk/C7qGKponXKIGFGrEdJD6R9lt8F98YkG1k8dpRwYP6BG yhI0IcmMvBA+rqytfU8unb33qqQvOw/D9rhyw= Original-Received: by 10.42.175.134 with SMTP id ba6mr21690704icb.23.1324825513541; Sun, 25 Dec 2011 07:05:13 -0800 (PST) Original-Received: by 10.43.51.132 with HTTP; Sun, 25 Dec 2011 07:05:13 -0800 (PST) In-Reply-To: <87ipldh29m.fsf@gnu.org> X-Google-Sender-Auth: P8382MHEdP4NU8psO9Nzy6ChX8s X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 X-Mailman-Approved-At: Sun, 25 Dec 2011 14:30:06 -0500 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:13186 Archived-At: Hello, Sorry it's been so long since my last reply. I've been somewhat busy around the holidays, but I hope to work more soon. > Also, what about =93vset=94 or just =93set=94 instead of =93value-set=94? Yes, probably a good idea. >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0(set! (a-verify-exps ret) >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(map (lambda (x) (rec ret x env= )) args)) >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0ret)) > > Please privilege a functional style, as much as possible (in some cases > we lack the tools to do better, so that=92s fine.) I don't think there's a functional way to do this, although I could be wrong. What I want to do is make a structure where the child tree nodes are linked to their parents. I can't get the address of the parent until after I allocate it, so I allocate it with an empty list of children, then use its address to make the list of children that I want. Another approach would be to make the list of children before allocating the parent, but then I would have to go back and fix up their 'parent' pointers. So I think either way I'm stuck doing some mutation. >> +(pass-if "value-set-can-be-anything?" >> + =A0 =A0 =A0 =A0 (value-set-can-be-anything? anything)) > > In Emacs you can (put 'pass-if 'scheme-indent-function 1) to get the > =93right=94 indentation. Ah, thanks. Done. Noah