Skip to content

bug in OtpErlangList iterator #1

@apperly

Description

@apperly

hi there,

been playing with your code as an alternative to otp.net. its great - thanks!

one small thing - there appears to be a bug in your implentation of GetEnumerator() on OtpErlangList. Doing a foreach over a list skips the first item! Maybe because the start parameter you pass into your inner Itr class shadows the exisiting field with the same name?

fwiw, might just be easier let the compiler write the iterator for you with yield return?

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