From: Dave Thomas Date: 2001-07-05T03:08:31+09:00 Subject: [ruby-talk:17237] Re: /* */ comments mjl@emsi.priv.at (Martin J. Laubach) writes: > | One note, I would prefer if begin comment and end comment token pairs could > | be nested within each other as this allows substantially more flexibility > | when you are using them to comment out large chunks of code which may > | contain other comments. > > Which brings us to some kind of preprocessor, doesn't it? > > #if 0 > blabla to be commented out > #if ADDITIONAL_DEBUGGING_STUFF > more blabla > #endif > #endif Wouldn't it be nice if you could use the same syntax for this as you use to program the rest of the code? class Fred if DEBUGGING def trace puts a,b,c end else def trace; end end end Oh, you can. :) Dave