foreach thoughts

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Jan 14 20:04:36 PST 2014


On Wed, Jan 15, 2014 at 11:38:13AM +1000, Manu wrote:
> On 15 January 2014 02:56, Daniel Murphy <yebbliesnospam at gmail.com> wrote:
> 
> > foreach(thought; thoughts)
> >  if(!thought.isInteresting)
> >    delete thought;
> >
> 
> That's a redundant filter, your code effectively does nothing ;)

And 'delete' is deprecated. :-P


T

-- 
Bomb technician: If I'm running, try to keep up.


More information about the Digitalmars-d mailing list