Summary: D2 Language Docs:
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2

--- Comment #0 from Andrej Mitrovic <> 2010-08-01 
09:02:50 PDT ---
".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"

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to