Re: boiler plate class generation, writing fresh variables with macros

2022-07-22 Thread Maxime Devos
On 22-07-2022 11:43, Blake Shaw wrote: But if I try to use `slot-machine` inside a class definition i'm out of luck: (define-class () (slot-machine 'inner 'color "green")) => While compiling expression: Syntax error: socket:7257:0: source expression failed to match any pattern in form

boiler plate class generation, writing fresh variables with macros

2022-07-22 Thread Blake Shaw
Hiya guilers, Right now I am working on a window manager extension system in Guile and GOOPs, and I want to eliminate the boilerplate for generating class slots, with a syntax-case macro like: #+begin_example scheme (define-syntax slot-machine (λ (form) (syntax-case form () ((_