Macro name can't be used as a variable: string-append
Hi! I'm trying to run the profiler from http://www.iro.umontreal.ca/~germaing/statprof.html with Gambit 4.6.6 and run into multiple problems. Some, I was able to fix (I'm a scheme beginner), but this... (define (as-rgb col) (apply string-append (map (lambda (x) (pad-left (number->string x 16) 2 #\0)) col))) gives me *** ERROR IN "statprof.scm"@94.20 -- Macro name can't be used as a variable: string-append I am unable to figure out. I string-append a macro?
(procedure? string-append) #t
Is this a Gambit bug or something I do overlook? Keep hacking! Dirk
Afficher les réponses par date
(define (apply-test) (apply string-append (list "A" "B" "C"))) Works flawlessly on my system. Maybe this is a bug within profiler in statprof.scm. (I'm using Gambit 4.7.0) Chris On 14.08.2013 23:56, Dirk Theisen wrote:
Hi!
I'm trying to run the profiler from http://www.iro.umontreal.ca/~germaing/statprof.html with Gambit 4.6.6 and run into multiple problems.
Some, I was able to fix (I'm a scheme beginner), but this...
(define (as-rgb col) (apply string-append (map (lambda (x) (pad-left (number->string x 16) 2 #\0)) col)))
gives me
*** ERROR IN "statprof.scm"@94.20 -- Macro name can't be used as a variable: string-append
I am unable to figure out.
I string-append a macro?
(procedure? string-append) #t
Is this a Gambit bug or something I do overlook?
Keep hacking! Dirk
_______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Dirk, I've got a copy on github that works with 4.6.6: https://github.com/devslashnull/statprof Hopefully that helps. James On Thu, Aug 15, 2013 at 7:56 AM, Dirk Theisen <d.theisen@gmx.net> wrote:
Hi!
I'm trying to run the profiler from http://www.iro.umontreal.ca/~germaing/statprof.html with Gambit 4.6.6 and run into multiple problems.
Some, I was able to fix (I'm a scheme beginner), but this...
(define (as-rgb col) (apply string-append (map (lambda (x) (pad-left (number->string x 16) 2 #\0)) col)))
gives me
*** ERROR IN "statprof.scm"@94.20 -- Macro name can't be used as a variable: string-append
I am unable to figure out.
I string-append a macro?
(procedure? string-append) #t
Is this a Gambit bug or something I do overlook?
Keep hacking! Dirk
_______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
participants (3)
-
Chris Mueller -
Dirk Theisen -
James Baker