From: Jim Weirich Date: 2004-08-04T13:45:21+09:00 Subject: Re: Macros in Ruby Jesse Jones wrote: > percent-case > 0.75 case > normal_hit > end > > 0.20 case > critical_hit > end > > otherwise > kill_foe > end > end I spent about 10 minutes coding this in Ruby (and it turned out to be very similar to Joel VanderWerf's version that he posted). I'm curious what a macro version would be like. What would the implementation of percent_case look like in Lisp or Dylan macros? -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)