www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Walter & Andrei: property

reply "John Colvin" <john.loughran.colvin gmail.com> writes:
This is a specific request to Walter and Andrei, not a call for 
yet another massive debate. I'm pretty sure every view has been 
heard already, many times over.

Walter/Andrei, can you take a final decision on this? You put a 
lot of effort in to DIP23 and it's just sitting there. It's a 
subjective topic that's been beaten to death by the community 
multiple times; there will never be consensus so it's a job for 
leadership.


P.S. I noticed something missing from DIP23:

How do I take an alias of an  property function? Or a 0-arg 
member function? Or a 1-arg free function?
Another way of putting it would be: is there a way to refer to 
the name of a function that doesn't require parens? Name as in 
pass-by-name.
Apr 14 2015
next sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 4/14/15 4:54 AM, John Colvin wrote:
 This is a specific request to Walter and Andrei, not a call for yet
 another massive debate. I'm pretty sure every view has been heard
 already, many times over.

 Walter/Andrei, can you take a final decision on this? You put a lot of
 effort in to DIP23 and it's just sitting there. It's a subjective topic
 that's been beaten to death by the community multiple times; there will
 never be consensus so it's a job for leadership.


 P.S. I noticed something missing from DIP23:

 How do I take an alias of an  property function? Or a 0-arg member
 function? Or a 1-arg free function?
 Another way of putting it would be: is there a way to refer to the name
 of a function that doesn't require parens? Name as in pass-by-name.
Yah, I consider property an unfinished affair that needs finishing. Maybe I'll work on it for the hackathon. -- Andrei
Apr 14 2015
prev sibling parent reply "John Colvin" <john.loughran.colvin gmail.com> writes:
On Tuesday, 14 April 2015 at 11:54:11 UTC, John Colvin wrote:
 This is a specific request to Walter and Andrei, not a call for 
 yet another massive debate. I'm pretty sure every view has been 
 heard already, many times over.

 Walter/Andrei, can you take a final decision on this? You put a 
 lot of effort in to DIP23 and it's just sitting there. It's a 
 subjective topic that's been beaten to death by the community 
 multiple times; there will never be consensus so it's a job for 
 leadership.


 P.S. I noticed something missing from DIP23:

 How do I take an alias of an  property function? Or a 0-arg 
 member function? Or a 1-arg free function?
 Another way of putting it would be: is there a way to refer to 
 the name of a function that doesn't require parens? Name as in 
 pass-by-name.
For cross-referencing purposes, an unpleasant consequence of the current situation: http://forum.dlang.org/post/rfrhuipeaoswqsunutal forum.dlang.org
Apr 16 2015
next sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 4/16/15 7:40 AM, John Colvin wrote:
 On Tuesday, 14 April 2015 at 11:54:11 UTC, John Colvin wrote:
 This is a specific request to Walter and Andrei, not a call for yet
 another massive debate. I'm pretty sure every view has been heard
 already, many times over.

 Walter/Andrei, can you take a final decision on this? You put a lot of
 effort in to DIP23 and it's just sitting there. It's a subjective
 topic that's been beaten to death by the community multiple times;
 there will never be consensus so it's a job for leadership.


 P.S. I noticed something missing from DIP23:

 How do I take an alias of an  property function? Or a 0-arg member
 function? Or a 1-arg free function?
 Another way of putting it would be: is there a way to refer to the
 name of a function that doesn't require parens? Name as in pass-by-name.
For cross-referencing purposes, an unpleasant consequence of the current situation: http://forum.dlang.org/post/rfrhuipeaoswqsunutal forum.dlang.org
Yah, saw that. It's an unforced error in the design of D. -- Andrei
Apr 16 2015
prev sibling parent "Kagamin" <spam here.lot> writes:
On Thursday, 16 April 2015 at 14:40:38 UTC, John Colvin wrote:
 For cross-referencing purposes, an unpleasant consequence of 
 the current situation: 
 http://forum.dlang.org/post/rfrhuipeaoswqsunutal forum.dlang.org
struct Foo { bool registered = false; void register(bool x) property { writeln("Registering ", x); register = true; } } Like this?
Apr 16 2015