From: Michael Campbell Date: 2002-09-24T05:33:01+09:00 Subject: RE: Teach me about yield > I second that. 'plain please, Lucy! > > Mark I'm very new at this, but I look at using yield wherever in C I would have used a function pointer. As an example, c's qsort(). You pass in the comparitor method there (Java uses an interface for this). In ruby, your sort could take a block instead. ("sort" may not be a great example, as it's built in a number of useful places...) ===== -- Use your computer to help find a cure for cancer: http://members.ud.com/projects/cancer/ Yahoo IM: michael_s_campbell __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com