-
-
Notifications
You must be signed in to change notification settings - Fork 378
Code sample fixes and additions, updated symbol names. #9
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…r arrays. Code sample: char[] as key type of an AA is not allowed, changed to string. Other code samples: changed numerous writefln's to writeln to make snippets compilable. Moved Foreach Range Statement logically close to the other foreach topics.
…ct, code was invalid. Added a struct ctor code sample.
…] to string to make code sample compilable
…hanged s typo to str. Tidied up formatting of code. Added override for class methods which implement hashing and other overridable Object methods. Updated word count example which assumed all text was ASCII, and made it more D2-like by using foreach.
…lts now. .init in code sample was placed in wrong position
…he code should be compilable now. Fixed imports and symbol names in code samples.
… methods, i.e. one can surround the return type with parentheses to make only the return type immutable.
Thanks for this work. Just fix the typedef issue and the pull is ready to merge. Thanks again! |
Ok I think that's it for now, typedef's fixed. |
andralex
added a commit
that referenced
this pull request
May 28, 2011
Code sample fixes and additions, updated symbol names.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Most of these are code sample updates, which should be compilable if the user provides a main() function somewhere. Some exceptions have been renamed in previous D releases and I've updated the names of some faulty ones. Added some missing documentation. Tidied up code samples.
I'm not sure why github keeps highlighting the "CATEGORY_SPEC=$0" line, perhaps it used CRLF line endings and was now converted to LF. I always keep my line endings to Unix LF btw.