-
-
Notifications
You must be signed in to change notification settings - Fork 378
const3.dd: start work on this one #2156
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
base: master
Are you sure you want to change the base?
Conversation
Thanks for your pull request, @WalterBright! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
spec/const3.dd
Outdated
Each applies transitively to all subtypes. | ||
$(P Type qualifiers modify a type by applying a $(I type constructor). | ||
$(GLINK2 declaration, TypeCtor)s are: | ||
$(D const), $(D immutable), $(D shared), and $(D inout). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are many type constructors in D (see definition at https://en.wikipedia.org/wiki/Type_constructor): the array syntax T[]
, the pointer syntax T*
, template instantiation A!T
etc. are all type constructors.
These are qualifiers (and indeed they are also type constructors), and the types resulting from the application are called qualified types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right, I'll fix
c7ab964
to
55f97f1
Compare
@WalterBright your changes overwrote my editorial changes, could you please check what your pushing process is? If you force push (with |
For example I just created 5d7e597. Can you make sure it doesn't get overwritten. Thanks. |
5d7e597
to
877dd23
Compare
I moved the stuff about storage classes to the end, they really should be merged with https://dlang.org/spec/declaration.html#typequal_vs_storageclass