From: Simon Strandgaard Date: 2004-03-14T21:49:41+09:00 Subject: Re: long string arguments On Sun, 14 Mar 2004 01:16:09 +0900, Elias Athanasopoulos wrote: [snip] > Does something like CPP exist in Ruby? I.e. a way to define some symbols > that expand during the code. In a C-ish way: > > #define <% myputs %Q| > #define %> | [snip] > myputs %Q| > ... > ... > | > > It would be nice if I could substitute the above with 2 distinct Object's > operators. C/C++ has a preprocessor, Ruby doesn't. However using 'eval' can easily let you do similar things. -- Simon Strandgaard