[Chicken-users] still parameterize bug

2011-06-13 Thread Joo ChurlSoo

(c)2000-2007 Felix L. Winkelmann
Version 4.7.0 
windows-mingw32-x86 [ manyargs dload ptables ]
compiled 2011-06-10  on INITERM (MinGW)

#;1 (define p (make-parameter 10 number-string))
#;2 (p)
10
#;3 (parameterize ((p 100)) (p))

Error: (number-string) bad argument type: 10
#;3 (p)
100
#;4 (define q (make-parameter 10 (lambda (x) (+ x 10
#;5 (q)
20
#;6 (parameterize ((q 100)) (q))
110
#;7 (q)
30
#;8 (q)
30

-- 
Joo ChurlSoo


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] still parameterize bug

2011-06-13 Thread Peter Bex
On Mon, Jun 13, 2011 at 09:25:33PM +0900, Joo ChurlSoo wrote:
 #;1 (define p (make-parameter 10 number-string))
 #;2 (p)
 10
 #;3 (parameterize ((p 100)) (p))
 
 Error: (number-string) bad argument type: 10

Not surprising. The ticket is still open: http://bugs.call-cc.org/ticket/473

-- 
http://sjamaan.ath.cx
--
The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music.
-- Donald Knuth

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] still parameterize bug

2011-06-13 Thread Felix
From: Joo ChurlSoo init...@gmail.com
Subject: [Chicken-users] still parameterize bug
Date: Mon, 13 Jun 2011 21:25:33 +0900

 
 (c)2000-2007 Felix L. Winkelmann
 Version 4.7.0 
 windows-mingw32-x86 [ manyargs dload ptables ]
 compiled 2011-06-10  on INITERM (MinGW)
 
 #;1 (define p (make-parameter 10 number-string))
 #;2 (p)
 10
 #;3 (parameterize ((p 100)) (p))
 
 Error: (number-string) bad argument type: 10

Yes, sorry, the bug is still open. Fixing this is non-trivial, and
since there were already many other things in the queue and because I
have no clear idea how to fix this in a not too ugly manner, I
postponed this bug to a later release.


cheers,
felix

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users