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

DIP25: parsing #4298

Merged
merged 1 commit into from
Jan 17, 2015
Merged

DIP25: parsing #4298

merged 1 commit into from
Jan 17, 2015

Conversation

WalterBright
Copy link
Member

This starts implementing:

http://wiki.dlang.org/DIP25

the parsing, name mangling, and pretty-printing. Also sets up the type, and handles covariance.

Adds -DIP25 switch which will later be used to enable the semantics of it. With this PR, adding return attributes is 100% backwards compatible.

@yebblies
Copy link
Member

Scope is a much more descriptive variable and switch name than DIP25.

@WalterBright
Copy link
Member Author

The switch will only be temporary for transitional purposes. Hence a name that is not likely to collide with some future use for -scope.

@WalterBright
Copy link
Member Author

Added some basic checking and inference semantics.

@@ -64,7 +64,7 @@ struct Param
bool useSwitchError; // check for switches without a default
bool useUnitTests; // generate unittest code
bool useInline; // inline expand functions
bool useScope; // diagnose 'scope' errors
bool useDIP25; // implement DIP25
Copy link
Member

Choose a reason for hiding this comment

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

a link in the comment would be nice

andralex added a commit that referenced this pull request Jan 17, 2015
@andralex andralex merged commit 9def1cc into dlang:master Jan 17, 2015
@WalterBright WalterBright deleted the dip25-1 branch January 17, 2015 02:34
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