Re: [racket] Macros that expand to field and method definitions

2012-04-25 Thread Patrick Mahoney
#|An update: here is what the macro looks like now.|# (define-syntax (define-property stx) (define make-id (lambda (template . ids) (define str (apply format template (map syntax->datum ids))) (datum->syntax stx (string->symbol str (syntax-parse stx [((~l

Re: [racket] Macros that expand to field and method definitions

2012-04-25 Thread Asumu Takikawa
On 2012-04-25 03:19:46 -0400, Patrick Mahoney wrote: >I'm looking to define a macro that extends the forms within a racket/class >class%. In particular, I would like a form to define a C# like class >language form property, that implements the getters and setters for an >initialized