On 2/14/08, Yukihiro Matsumoto <matz / ruby-lang.org> wrote:
> HI,
>
>  In message "Re: IRHG - Slow Child Working?"
>
>     on Thu, 14 Feb 2008 15:18:31 +0900, Charles Thornton <ceo / hawthorne-press.com> writes:
>
>  |  Isn't this a NOP.  It will BREAK no matter what the condition!
>
>  |789 case T_DATA:
>  | 790 if (obj-> As.Data.Dmark) (*obj-> As.Data.Dmark) (DATA_PTR (obj));
>  | 791 break;
>
>
> Does the following rewrite make it clearer?
>
>   if (obj->as.data.dmark) {
>     (*obj->as.data.dmark) (DATA_PTR (obj))
>   };
>
>
>                                                         matz.

Also, you want the break executed regardless of whether the if passed
to keep from running the next case in the containing switch statement,
that's just the way C switch;case works.


-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/