In article <20051024175148.GE2140 / atdesk.com>,
Paul Brannan  <pbrannan / atdesk.com> wrote:
>On Tue, Oct 25, 2005 at 02:42:01AM +0900, Phil Tomson wrote:
>> One thing that comes to mind is that I'm more likely now to pass around 
>> function pointers as a way to emulate yield.  The function passed in can 
>> be evaluated at every step of an iteration, for example, to test for some 
>> condition.  
>
>This is a common C++ idiom, actually, but usually it involves a function
>object rather than a function pointer, since calls into the function
>object can often be more easily inlined.
>

Yes, this is probably true, but it took a trip through Ruby-land for me to 
'get it' in C++ (and yes, I should probably be using functors).

Phil