www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14332] New: support with statement and :


          Issue ID: 14332
           Summary: support with statement and :
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: deadalnix gmail.com

D supports : as an indicator to create a scope up to the end of the enclosing

This does not work for this:

with(Foo): // Error: found ':' instead of statement

If there is no specific reason for this to not work, then it should be

Mar 24 2015