www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2045] New: .init Property documentation

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2045

           Summary: .init Property documentation
           Product: D
           Version: 2.013
          Platform: All
               URL: http://www.digitalmars.com/d/2.0/property.html
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: gide nwawudu.com


The behaviour of .init changed in release 1.017/2.001, and discussed at length
on the following thread:
http://www.digitalmars.com/d/archives/digitalmars/D/Public_outcry_against_new_.init_behaviou
_55158.html#N55170. 

The documentation  should updated to the new spec.

int a;
int b = 1;
typedef int t = 2;
t c;
t d = cast(t)3;
                // Doc   => Actual
int.init        // is 0  => 0
a.init          // is 0  => 0
b.init          // is 1  => 0
t.init          // is 2  => 2
c.init          // is 2  => 2
d.init          // is 3  => 2


-- 
Apr 27 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2045





------- Comment #1 from braddr puremagic.com  2008-04-27 15:02 -------
*** Bug 2049 has been marked as a duplicate of this bug. ***


-- 
Apr 27 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2045


Brad Roberts <braddr puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |braddr puremagic.com
         Resolution|                            |FIXED
         AssignedTo|bugzilla digitalmars.com    |braddr puremagic.com




--- Comment #2 from Brad Roberts <braddr puremagic.com>  2009-06-07 17:33:51
PDT ---
Fixes submitted to svn as revision 1180 and will be pushed to the website the
next time walter updates and deploys.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 07 2009