Proposal of a general do-while loop

Regan Heath regan at netmail.co.nz
Wed Jul 18 01:08:28 PDT 2007


You could also use inline functions eg.

{

   T p;

   T complex_pre()
   {
   }

   T complex_post()
   {
   }

   for( p = complex_pre(); p != null; p = complex_post())
   {
     ..body..
   }

}

Regan



More information about the Digitalmars-d mailing list