This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Redefining define
- From: Rob Hunter <rhunter at mercedsystems dot com>
- To: kawa at sources dot redhat dot com
- Date: Fri, 22 Jul 2005 09:22:53 -0700
- Subject: Redefining define
I'd like to change the behavior of define. Here's an example of what
I'd like to do:
(define-syntax my-define
(syntax-rules ()
((_ args ...)
(begin (display "hey there\n") (define args ...)))))
And so when I write
(my-define x 3)
it acts just like define except does this other behavior first (ie,
prints a message).
Instead of writing my-define all over the place, though, I'd just
like to be able to use define have it do the my-define version.
Anyone know if there's a way to do this in Kawa?
Thanks!
Rob