On Wed, 05 Oct 2011 13:26:26 +0300, Gor Gyolchanyan <gor.f.gyolchan...@gmail.com> wrote:

Example: named foreach loops over objects:

You can achieve almost exactly this by iterating over a delegate (define a method with the same signature as opApply). The only change at the call site is that instead of "foreach(ref c; ts.text)" you'll type "foreach(ref c; &ts.text)".

--
Best regards,
 Vladimir                            mailto:vladi...@thecybershadow.net

Reply via email to