I'm trying to make some simple use of Racket's class and object system, but I'm having trouble using the documentation to figure out how to accomplish something.
I want to create both a no-argument default constructor and a copy-constructor. I don't see how to accomplish that. If I declare an initialization variable for the copy constructor, I don't see how to provide a default value for that initialization variable that would be compatible with field initialization expressions that use an "other-object" initialization variable. Further, I would really like to provide different field initialization expressions for the default constructor and the copy-constructor (the copy-constructor would be a recurrence relation and the default constructor would provide the initial conditions). I could use a Smalltalk-like approach with a default field initialization expression and an imperative "copy constructor" that updates the default values using set!, but I'd rather take a more functional approach. Could someone provide an example of how to accomplish this functionally? Best regards, -Steve -- Steve Byan steveb...@me.com Littleton, MA -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.