From: Rick DeNatale Date: 2007-03-12T07:03:36+09:00 Subject: Re: #define alternative for Ruby On 3/11/07, SonOfLilit wrote: > Use the P4 preprocessor on your scripts :P You'll get #define EXACTLY. > > No, but seriously - text substitute macros are awful. There's a good > reason that Matz didn't offer them in Ruby. There's also the interesting problem of what the semantics of changing a text macro in a dynamically compiled language like ruby. Let's say you use a macro expansion in a method, and then later change the macro. Do the methods which use that macro then need to be re-compiled? What if you introduce a new macro that has the same name as a non-macro name. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/