www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 658] New: struct pointers in with()

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: csantander619 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.


-- 
Dec 06 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=658





------- Comment #1 from andrei metalanguage.com  2008-09-20 17:44 -------
(In reply to comment #0)
 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.
 

Bumping this as an oversight. --
Sep 20 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=658


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei metalanguage.com
         AssignedTo|nobody puremagic.com        |bugzilla digitalmars.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 26 2010