From: David Alan Black Date: 2001-07-05T20:09:05+09:00 Subject: [ruby-talk:17285] Re: /* */ comments Hello -- On Thu, 5 Jul 2001, Michael Neumann wrote: > Has someone told, that we have already something like > multiline comments? > > Just make the piece of code you want to comment out > a string with %{ .... }. It's also possible to nest them. > > For example Python users often use this (with """ thus not nestable), > especially for documenting classes/methods. > > The only problem I can see is that if it occurs at the end of a method/block > it's taken as return value. The other problem is that then you have strings lying around out of context: def thing end %{ def other_thing end } => comments.rb:6: warning: useless use of a literal in void context Syntax OK unless of course you assign it to a variable, which then raises other issues. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav