On Friday 12 July 2002 11:14 am, Andre Poenitz wrote: > for (Row const * row = visible.first; true; row = row->next()) { > // do what you want to do... > if (row != visible.second) > break; > }
Glad to see that I wasn't being ridiculously stupid. Someone should refactor Row so that list<Row> is a natural construct. Till then I thought I should use it as it was designed to be used ;-) > saves one "global" variable but uses 'break' which some people frown upon > (mostly for reasons I don't accept...) > > Andre'