chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Problem with (symbol->string) in Chicken 4.0


From: William Ramsay
Subject: Re: [Chicken-users] Problem with (symbol->string) in Chicken 4.0
Date: Fri, 01 May 2009 09:14:29 -0400
User-agent: Thunderbird 2.0.0.17 (X11/20080914)

That looks like it did the trick.   Thanks a million....

Bill

Jim Ursetto wrote:
On Thu, Apr 30, 2009 at 2:59 PM, William Ramsay <address@hidden> wrote:
Can you be a little more explicit in what you mean?   Adding that just
produces more errors.
John Cowan wrote:

  (lambda body rename compare)
    (define s (car body))
    (define ff (cdr body))

Change this:

(define-syntax define-structure
 (lambda (s . ff)
  (let
    ((name (symbol->string s)) (n (length ff)))

to this:

(define-syntax define-structure
 (lambda (form rename compare)
  (let*
    ((s (cadr form))
     (ff (cddr form))
     (name (symbol->string s)) (n (length ff)))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]