Folks,
I downloaded the pre-built b9 binaries for Mac OSX. I start up the interpreter and do the following:
(define-structure point x y) (define p (make-point 3 5))
The second statement does not work as make-point is not defined. what gets defined is actually "point" so what works is
(define p (point 3 5))
I took the example straight from the b9 docs, though. What's happening?
Thanks, Joel
Afficher les réponses par date
On Dec 4, 2004, at 4:38 PM, Joel Reymont wrote:
I downloaded the pre-built b9 binaries for Mac OSX.
Gambit 4.0 beta, like all betas, has bugs. This one has been fixed by beta-11:
[zakon2-iro-umontreal-ca:~] bjlucier% gsi Gambit Version 4.0 beta 11
(define-structure point x y) point
*** ERROR IN (console)@3.1 -- Unbound variable: point 1>
make-point
#<procedure #2 make-point>
(define p (make-point 3 5)) p
#<point #3 x: 3 y: 5>