[Issue 658] New: struct pointers in with()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 6 14:36:24 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=658

           Summary: struct pointers in with()
           Product: D
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: csantander619 at gmail.com


I've mentioned this before, but now I'm submitting it here.

//---------------
struct foo {}

void main()
{
    foo f1;
    foo *f2;
    with (f1) {}   // works
    with (*f2) {}  // works
    with (f2) {}   // doesn't work
}
//---------------

It would be nice if the last line also worked.


-- 




More information about the Digitalmars-d-bugs mailing list