Skip to content

Supplemental fix for issue 9148 and 13120 - #2493

Merged
quickfur merged 2 commits into
dlang:masterfrom
9rnsr:fix13120
Sep 8, 2014
Merged

quickfur merged 2 commits into
dlang:masterfrom
9rnsr:fix13120

Conversation

@9rnsr

@9rnsr 9rnsr commented Sep 7, 2014

Copy link
Copy Markdown
Contributor

Today, some attribute violations are accidentally accepted by the issue 13120.

This change is required by a compiler fix dlang/dmd#3956

@CyberShadow

Copy link
Copy Markdown
Member

formatting double as string is not safe

Why is that? Seems like an artificial limitation.

@9rnsr

9rnsr commented Sep 7, 2014

Copy link
Copy Markdown
Contributor Author

@CyberShadow void formatValue(...) if (is(FloatingPointTypeOf!T && ...) in std.format uses snprintf. to!string(double) indirectly calls it, so it's current limitation.

@CyberShadow

Copy link
Copy Markdown
Member

The fix is very simple: #2494

…attribute

`removechars()` and `squeeze()` are not @nogc, because they uses `dup` and `std.utf.encode`.
@9rnsr

9rnsr commented Sep 8, 2014

Copy link
Copy Markdown
Contributor Author

@CyberShadow OK, I removed @safe stripping.

@quickfur

quickfur commented Sep 8, 2014

Copy link
Copy Markdown
Member

LGTM

@quickfur

quickfur commented Sep 8, 2014

Copy link
Copy Markdown
Member

Auto-merge toggled on

quickfur pushed a commit that referenced this pull request Sep 8, 2014
Supplemental fix for issue 9148 and 13120
@quickfur
quickfur merged commit fc84b75 into dlang:master Sep 8, 2014
@9rnsr
9rnsr deleted the fix13120 branch September 9, 2014 12:06
@9rnsr

9rnsr commented Sep 9, 2014

Copy link
Copy Markdown
Contributor Author

Thanks!

jmdavis pushed a commit to jmdavis/phobos that referenced this pull request Jul 15, 2026
test/shared: Support more platforms in test
merged-on-behalf-of: Nicholas Wilson <[email protected]>
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