www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 920] New: Auto classes referenced where scope should be used

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

           Summary: Auto classes referenced where scope should be used
           Product: D
           Version: 1.004
          Platform: All
               URL: http://www.digitalmars.com/d/statement.html#ScopeGuardSt
                    atement
        OS/Version: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P3
         Component: www.digitalmars.com
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: deewiant gmail.com


The phrase "auto instances" is used, and the third, longest, block of code uses
"auto Foo f" where it should use "scope Foo f".


-- 
Feb 02 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=920


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed in DMD 2.021


-- 
Dec 07 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=920


matti.niemenmaa+dbugzilla iki.fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |





-------
This bug was reported against 1.0, and the 1.0 docs still exhibit both of these
anachronisms:
http://www.digitalmars.com/d/1.0/statement.html#ScopeGuardStatement


-- 
Dec 08 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=920






Looks like almost all of the cases are fixed, but there's still one more.  In
the Return Statement block:

==== snip ====
Before the function actually returns, any objects with auto storage duration
are destroyed,
==== end snip ====

This is the case for both the 1.0 and 2.0 versions of the page.


-- 
Jan 01 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=920


matti.niemenmaa+dbugzilla iki.fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED





-------
Fixed with DMD 1.042.


-- 
Apr 01 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=920






Fixed DMD 1.042 and 2.027


-- 
Apr 01 2009