From: Devin Mullins Date: 2007-01-11T14:36:01+09:00 Subject: Re: return_on Trans wrote: > Sometimes i do this: > return x if x > Anyway to code it as: > return_on x I'm wondering if continuations (or continuations + set_trace_func to catch the method end) could be used to achieve that, but am not a whiz at callcc, and am up past my bedtime (hence am not going to experiment w/ it). Is there a Weirich in the house? Devin (Even if it can be implemented using such hackery, I might consider that a smell that it's so different, and doesn't map to Ruby's ways, and be hesitant to use such a beast in GP code.)