[Issue 7670] UFCS problem with @property and structs

2012-03-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7670



--- Comment #3 from bearophile_h...@eml.cc 2012-03-18 05:52:43 PDT ---
See also Bug 7722 and Bug 7723

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


[Issue 7670] UFCS problem with @property and structs

2012-03-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7670



--- Comment #2 from bearophile_h...@eml.cc 2012-03-16 18:44:11 PDT ---
Maybe you have gone a bit too much far with your fix, Kenji Hara.

In my example code here I used @property:

@property ref double y(ref A a) {

But your patch allows that syntax even without @property.

Your patch allows _very_ nice and noise-free code like:

[1, 2, -3, 4].filter!(x = x  0).map!(x = x ^^ 0.2).writeln;

But I think it undermines the meaning and usefulness of the -property compiler
switch and the meaning of @property.

So I suggest to think a bit more about this, to keep the nice things, and to
not throw away two baby waters.

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


[Issue 7670] UFCS problem with @property and structs

2012-03-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7670


Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Keywords||pull


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-03-15 08:02:47 PDT ---
https://github.com/D-Programming-Language/dmd/pull/812

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


[Issue 7670] UFCS problem with @property and structs

2012-03-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7670


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


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