Skip to content

Bug in example code #3

Description

@Blueglide

Thanks for postig rambo. Just what I need.

There is a small bug in the example that I'll flag here though. You cannot use sFIFO.count() in the for-loop termination clause because its value continually decrements as the for-loop dequeues and prints items. It meets the index i going down as i is counting up with the result that listing items quits when only half of the total entries have been printed. Mine printed three ofthe five. No big deal, but could cause a novice some grief, thus my note here.

Cheers!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions