[Issue 658] struct pointers in with()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 20 15:44:18 PDT 2008


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





------- Comment #1 from andrei at 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.


-- 



More information about the Digitalmars-d-bugs mailing list