Re: Problems with attributes.

Subject: Re: Problems with attributes.
From: Brandon Ibach <bibach@xxxxxxxxxxxxxx>
Date: Fri, 22 Oct 1999 03:09:46 -0500
Quoting Reyes <reyes.garcia@xxxxxxxxxx>:
> 	The error is:
> 
> 	Jade:c:\StarDsssl\Renk-Jade\Little.dsl:53:38:E: 
> 		reference to undefined variable "node-list-reduce"
> 
> >   This looks good, but it won't eliminate all duplicates, as it only
> >compares the node-to-be-added to the first node in the result list.
> >If you can figure out what's wrong with your node-list-contains?, that
> >would be superior.  On that note, Jade 1.3 implements *all* of the
> >node-list operations natively.
> >
> 	I know it, but I don't have another solution. If I can solve the
> problem with "node-list-reduce" this is better, but I don't know why.
> 	
   Well, as the error message says, "node-list-reduce" is undefined.
Before 1.3, [Open]Jade didn't implement a lot of the higher-level
node-list functions from the spec.  So, you can either get OpenJade
1.3, or put in a definition for node-list-reduce, such as:
	(define (node-list-reduce nl p o)
	  (if (node-list-empty? nl) o
	    (node-list-reduce (node-list-rest nl) p
                              (p o (node-list-first nl)))))

-Brandon :)


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Re: Problems with attributes., (continued)
        • Brandon Ibach - Wed, 20 Oct 1999 16:48:24 -0400 (EDT)
        • Reyes - Thu, 21 Oct 1999 08:34:57 -0400 (EDT)
        • Brandon Ibach - Thu, 21 Oct 1999 11:46:16 -0400 (EDT)
        • Reyes - Fri, 22 Oct 1999 02:25:47 -0400 (EDT)
        • Brandon Ibach - Fri, 22 Oct 1999 04:08:57 -0400 (EDT) <=
        • Reyes - Fri, 22 Oct 1999 05:22:23 -0400 (EDT)
        • Reyes - Fri, 22 Oct 1999 05:23:03 -0400 (EDT)
    • Reyes - Wed, 20 Oct 1999 06:07:18 -0400 (EDT)
    • Christopher R. Maden - Fri, 22 Oct 1999 03:26:59 -0400 (EDT)