Skip to content

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Aug 23, 2011

Related pull request is #126.

Features:

  • Improvement of std.conv.parse
    Support static array and associative array parsing.
    And escaped container elements are parsed correctly.
    e.g. assert(parse!(string[])(´["str1", "str2"]´) == ["str1", "str2"]);
  • Improvement of std.format.unformatValue
    Support bool value and associative array unformatting.
    And support range FormatSpec (e.g, "%(...%)") .

}
}

deprecated alias ConvException ConvError; /// ditto

private void convError(S, T, string f = __FILE__, uint ln = __LINE__)(S source)
private void convError(S, T, string fn = __FILE__, uint ln = __LINE__)(S source)
Copy link
Member

Choose a reason for hiding this comment

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

ln should be size_t, since __LINE__ is size_t.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK. I'll fix it.

@9rnsr
Copy link
Contributor Author

9rnsr commented Sep 4, 2011

Apply reviewed fixes, and rebase.

@andralex
Copy link
Member

andralex commented Sep 5, 2011

I'm merging this; Kenji-san, feel free to act on my comments in a future diff.

andralex added a commit that referenced this pull request Sep 5, 2011
@andralex andralex merged commit 755b21f into dlang:master Sep 5, 2011
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