Skip to content

an endless loop in chapter 3 #9

@sweet-zone

Description

@sweet-zone

we use these code to traverse the names List in chapter, but, the property 'pos' will alaways less than 'listSize', so there will be a endless loop..

for(names.front(); names.currPos() < names.length(); names.next()) {
print(names. getElement());
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions