-
-
Notifications
You must be signed in to change notification settings - Fork 382
Tweak D for C, C++ programmer pages #1552
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
Conversation
ctod.dd
Outdated
| $(H4 The C Way) | ||
|
|
||
| It's annoying to have to put the struct keyword every time a type is specified, | ||
| It's annoying to have to put the `struct` keyword every time a type is specified, |
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.
Also replace "put" with "use" or "write".
ctod.dd
Outdated
| $(H4 The D Way) | ||
|
|
||
| The length of an array is accessible through the property "length". | ||
| The length of an array is accessible through the property `length`. |
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.
"length property"
| { | ||
| typedef int fp(int); | ||
| alias int fp(int); | ||
|
|
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.
new alias syntax please
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.
Not sure how, I tried alias fp = int function(int) but that didn't work.
edit: It fails is(fp == function).
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.
I think I've run into this issue before. If it is what I think it is, it's not possible to translate this to the new alias syntax.
|
@Hackerpilot done |
Also expand factorial example.