[gambit-list] define-type with constraints

lowly coder lowlycoder at huoyanjinjing.com
Thu May 21 15:22:05 EDT 2009


I realize the purpose of define-type is to create structs, but I have struct
with some constarints that must be satisfied, like in define-type.scm

I want two vars, 'x' and 'twice-x', where twice-x = (* 2 x)

In my code, I have created good-x-set! and good-twice-x-set!

However, how do I overwrite the existing linked-x-set! and
linked-twice-x-set! with my good-x-set! and good-twice-x-set! ?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20090521/9b77f794/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: define-type.scm
Type: text/x-scheme
Size: 198 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20090521/9b77f794/attachment.bin>


More information about the Gambit-list mailing list