D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4547 - D2 Language Docs: http://www.digitalmars.com/d/2.0/property.html
Summary: D2 Language Docs: http://www.digitalmars.com/d/2.0/property.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:02 UTC by Andrej Mitrovic
Modified: 2012-01-04 08:47 UTC (History)
0 users

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:02:50 UTC
".init Property"

In the last line in example code, Foo.b.init is 0, not 7 (unlike what the comment states).



".stringof Property"

Example contains two lines refering to "test.Foo",
but "test" isn't declared anywhere. 

Also, the output is different from the one in the comments, here's the new one based on DMD 2.047:

writefln((1+2).stringof);       // "1 + 2"
writefln(Foo.stringof);         // "Foo"
writefln(int.stringof);         // "int"
writefln((int*[5][]).stringof); // "int*[5u][]"
writefln(Enum.RED.stringof);    // "cast(Enum)0
writefln((5).stringof);         // "5"
Comment 1 Andrej Mitrovic 2011-05-19 20:26:20 UTC
Fixed in local branch, will issue pull request later.
Comment 2 Andrej Mitrovic 2011-05-19 21:14:23 UTC
Reopening since I haven't merged anything yet. Sorry for the notification spam!
Comment 3 Andrej Mitrovic 2012-01-04 08:47:28 UTC
Fixed ages ago, forgot to close.