[racket-dev] class implementation and make-primitive-class
That wouldn't work for this project because I need to be able to generate an object that satisfies a given Racket contract and can be passed to user functions that expect such an object so I need to use Racket's class system. I have a working prototype that builds class syntax then calls eval-syntax on it, I was just trying to figure out if there was an easy way to avoid using eval.
Thanks again
Dan
----- Original Message -----
From: "Neil Van Dyke" <neil at neilvandyke.org>
To: dfeltey at ccs.neu.edu
Cc: dev at racket-lang.org
Sent: Thursday, April 17, 2014 4:17:54 PM GMT -05:00 US/Canada Eastern
Subject: Re: [racket-dev] class implementation and make-primitive-class
For purposes of your course project, couldn't you make your own
class-instance object system, atop structs or hashes, that gives you
whatever dynamic programming features you want? It's very-very easy to
do a basic one (with single inheritance and single dispatch), until you
get into speed optimizations.
Or, if Swindle has a MOP, you could use that.
Neil V.