Skip to content

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
merged 17 commits into from May 28, 2011
Merged

Code sample fixes and additions, updated symbol names. #9

merged 17 commits into from May 28, 2011

Conversation

ghost
Copy link

@ghost ghost commented May 20, 2011

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.

…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.
…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.
@andralex
Copy link
Member

Thanks for this work. Just fix the typedef issue and the pull is ready to merge. Thanks again!

@ghost
Copy link
Author

ghost commented May 28, 2011

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.
@andralex andralex merged commit 93727ef into dlang:master May 28, 2011
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.

2 participants