From: David Garamond Date: 2004-06-05T17:14:29+09:00 Subject: Re: Check assertion in Ruby Paul Brannan wrote: > On Sat, Jun 05, 2004 at 05:51:44AM +0900, Jean-Hugues ROBERT wrote: > >>if DEBUG >> def assert >> raise "assertion failure" unless yield >> end >>else >> def assert; end >>end >> >>There is some overhead when not in DEBUG mode, but that >>is the best you can do in Ruby as far as I know. > > That's the best I know of that you could do in pure ruby. Is anyone using cpp (C preprocessor) along with Ruby? I've always wanted to use it, but my laziness prevails everytime :-) -- dave