This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]