D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4549 - D2 Language Docs: http://www.digitalmars.com/d/2.0/expression.html
Summary: D2 Language Docs: http://www.digitalmars.com/d/2.0/expression.html
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: Other All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-01 09:05 UTC by Andrej Mitrovic
Modified: 2012-01-18 13:53 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrej Mitrovic 2010-08-01 09:05:58 UTC
"Array Literals"

In the third example code:
    writeln(ct);  // writes [1 1]
    writeln(rt);  // writes [257]

The output is instead:
    1 1
    1 0 1 0



"is ( Type Identifier )"
"is ( Type Identifier : TypeSpecialization )"
"is ( Type Identifier == TypeSpecialization , TemplateParameterList )"

Replace writefln with writeln in all the code examples.
Comment 1 Andrej Mitrovic 2011-05-19 20:36:06 UTC
Literals fixed. writefln doesn't have to be fixed, it works fine.

Will make pull request later.
Comment 2 Brad Roberts 2011-05-19 21:10:43 UTC
I don't think bugs should be marked resolved until the changes are in the appropriate master repository.  There's a lot of things that can happen between a private branch submit and the point of the merge.
Comment 3 Andrej Mitrovic 2011-05-19 21:12:57 UTC
Hmm I guess you're right. Ok I'll re-open the rest. Sorry for the mixup!