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 3990 - Deferencing a dynamic array as pointer #3912

Merged
merged 1 commit into from Aug 31, 2014

Conversation

yebblies
Copy link
Member

It was deprecated almost 3 years ago.

https://issues.dlang.org/show_bug.cgi?id=3990

@schuetzm
Copy link
Contributor

The error message still says "is deprecated", should be "is (not|no longer) supported".

@@ -9185,7 +9185,7 @@ Expression *PtrExp::semantic(Scope *sc)

case Tsarray:
case Tarray:
deprecation("using * on an array is deprecated; use *(%s).ptr instead", e1->toChars());
error("using * on an array is deprecated; use *(%s).ptr instead", e1->toChars());
Copy link
Member

Choose a reason for hiding this comment

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

Those brackets around the array seem superfluous. It should be *(%s.ptr).

Copy link
Member Author

Choose a reason for hiding this comment

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

It could be any expression typed as an array.

@yebblies
Copy link
Member Author

Updated message.

@9rnsr
Copy link
Contributor

9rnsr commented Aug 31, 2014

Auto-merge toggled on

9rnsr added a commit that referenced this pull request Aug 31, 2014
Issue 3990 - Deferencing a dynamic array as pointer
@9rnsr 9rnsr merged commit 6adcefd into dlang:master Aug 31, 2014
@9rnsr
Copy link
Contributor

9rnsr commented Aug 31, 2014

Updating the page http://dlang.org/deprecate is also necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants