#lang racket
(define-struct foo (x y) #:mutable)
(define foo-instance (make-foo 1 2))
(set-foo-x! foo-instance 5)
(foo-x foo-instance)
On 06/24/2010 06:09 PM, Insik Cho wrote:
Hi buddies,
When I make an instance of a structure, I want to modify of the value of
members of the instance.
So, can I refer a member of a structure as a referent to update it directly?
- Joe
_________________________________________________
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
_________________________________________________
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users