 |
Changeset 3866
- Timestamp:
- 08/09/08 17:05:02
(4 months ago)
- Author:
- kris
- Message:
fixes #1231 :: LinkedList? doesn't allow iterating over empty list
thanks to humpolec
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3713 |
r3866 |
|
| 150 | 150 | final Iterator iterator () |
|---|
| 151 | 151 | { |
|---|
| 152 | | assert (list); |
|---|
| 153 | | |
|---|
| 154 | 152 | Iterator i = void; |
|---|
| 155 | 153 | i.mutation = mutation; |
|---|
| 156 | | i.node = *(i.hook = &list); |
|---|
| | 154 | i.node = list ? *(i.hook = &list) : null; |
|---|
| 157 | 155 | i.prior = null; |
|---|
| 158 | 156 | i.owner = this; |
|---|
Download in other formats:
|
 |
 |
|
 |
Copyright © 2006-2008 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic