www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1256] New: "with" statement with symbol

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

           Summary: "with" statement with symbol
           Product: D
           Version: 1.014
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: wstring gmail.com


The following code was copied from D document:
http://www.digitalmars.com/d/statement.html#WithStatement
with a little modification. The 7th line have caused a compile error "Foo is
not a lvalue".

 void main() {  

     struct Foo {  
         typedef int Y;   
     }  

     with (Foo) { //Error: Foo is not a lvalue  
         Y y;  
     }  
}


-- 
Jun 04 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1256






Fixed in 1.017.


-- 
Jun 26 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1256


onlystupidspamhere yahoo.se changed:

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




-- 
Jun 26 2007