Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tighten type of state in next and done of StepRange and UnitRange #9670

Closed
wants to merge 1 commit into from

Conversation

Jutho
Copy link
Contributor

@Jutho Jutho commented Jan 7, 2015

Making these arguments more specific prevents ambiguity warnings when defining new ierators over AbstractArray, as in #8432. cc @timholy

@JeffBezanson
Copy link
Sponsor Member

It looks like this causes a problem for non-numeric ranges, e.g. of Chars.

@Jutho
Copy link
Contributor Author

Jutho commented Jan 8, 2015

Indeed, I also hadn't considered ranges of user defined types which are not Reals. This causes more problems than it fixes so never mind.

@Jutho Jutho closed this Jan 8, 2015
@Jutho Jutho deleted the jh/nextrange branch January 8, 2015 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants