DMD 0.170 release
Chris Miller
chris at dprogramming.com
Tue Oct 17 07:53:08 PDT 2006
On Tue, 17 Oct 2006 05:58:47 -0400, Walter Bright
<newshound at digitalmars.com> wrote:
> Walter Bright wrote:
>> Added foreach_reverse, which addresses a serious shortcoming.
>> http://www.digitalmars.com/d/changelog.html
>
>
> Lots of background for the foreach improvements in:
>
> http://www.digitalmars.com/d/archives/digitalmars/D/17320.html
Just to clarify, the OP in that thread was attempting to violate the
restrictions placed on foreach ("The aggregate itself must not be
resized..." - http://www.digitalmars.com/d/statement.html#foreach).
To further clarify, there is a simple way to remove all selected items in
a DFL ListBox:
while(listBox.selectedIndices.count)
{
listBox.items.remove(listBox.selectedIndices[0]);
}
More information about the Digitalmars-d-announce
mailing list