Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Iterating over empty list

Moderators: kris

Posted: 08/07/08 00:13:36

tango.util.container.LinkedList? doesn't allow you to foreach() over empty list (there is an assertion in LinkedList?.iterator()). Is this really correct behavior? I find it counter-intuitive.

Author Message

Posted: 08/07/08 07:38:32

Could you please create a ticket?

Posted: 08/07/08 09:55:06

Done.