Thread overview
[Issue 658] New: struct pointers in with()
Dec 06, 2006
d-bugmail
Sep 20, 2008
d-bugmail
Jul 29, 2013
Henning Pohl
Aug 06, 2013
Henning Pohl
December 06, 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@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.


-- 

September 20, 2008
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.


-- 

November 26, 2010
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: -------
July 29, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=658


Henning Pohl <henning@still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid
                 CC|                            |henning@still-hidden.de


--- Comment #2 from Henning Pohl <henning@still-hidden.de> 2013-07-29 16:41:16 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2419

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 06, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=658



--- Comment #3 from github-bugzilla@puremagic.com 2013-08-05 17:09:38 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/140e9138302afa59a98ffc1d382cd2a79b825f89 fix issue 658 - struct pointers in with()

https://github.com/D-Programming-Language/dmd/commit/75f77526e1c522f74e01c02eb687d09da51a1e88 Merge pull request #2419 from hpohl/658

[enh] fix issue 658 - struct pointers in with()

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 06, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=658


Henning Pohl <henning@still-hidden.de> changed:

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


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