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

Issue 1339 - Invariant/const-ness is broken by built-in array properties #219

Merged
merged 1 commit into from Oct 3, 2011

Conversation

yebblies
Copy link
Member

@yebblies yebblies commented Jul 9, 2011

Issue 1339 - Invariant/const-ness is broken by built-in array properties sort and reverse

Do not allow sort or reverse on an array with a non-mutable element type.
Do not allow dupping an array when it violates const/immutable.

Requires druntime pull request 37 (merged)

http://d.puremagic.com/issues/show_bug.cgi?id=1339
http://d.puremagic.com/issues/show_bug.cgi?id=3550
http://d.puremagic.com/issues/show_bug.cgi?id=2737

…ies sort and reverse

Do not allow sort or reverse on an array with a non-mutable element type.
Do not allow dupping an array when it violates const/immutable.
Do not attempt to use ufcs when the property is dup, idup, sort or reverse.
braddr pushed a commit to braddr/dmd that referenced this pull request Sep 15, 2011
Add std.range.indexed and chunks.
WalterBright added a commit that referenced this pull request Oct 3, 2011
Issue 1339 - Invariant/const-ness is broken by built-in array properties
@WalterBright WalterBright merged commit f6fe4cc into dlang:master Oct 3, 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
2 participants