Skip to content

Conversation

@Abscissa
Copy link
Contributor

@Abscissa Abscissa commented Oct 2, 2011

This puts everything from pull request #228 into one commit.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could just do foreach(ref line; lines) and skip the index.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. I think the indicies are holdovers from old versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember why I did that: If I just use foreach(ref line; lines), then it breaks under CTFE.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. Okay. Hopefully that restriction gets fixed at some point.

@jmdavis
Copy link
Member

jmdavis commented Oct 3, 2011

Well, unless Andrei has anything more to add, this looks like it's good to go.

andralex added a commit that referenced this pull request Oct 3, 2011
Add std.string.outdent (try #3)
@andralex andralex merged commit 8f94a56 into dlang:master Oct 3, 2011
@andralex
Copy link
Member

andralex commented Oct 3, 2011

Thanks for your work.

marler8997 pushed a commit to marler8997/phobos that referenced this pull request Nov 10, 2019
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.

3 participants