new DIP47: Outlining member functions of aggregates

Manu turkeyman at gmail.com
Mon Sep 9 05:36:50 PDT 2013


On 9 September 2013 18:08, deadalnix <deadalnix at gmail.com> wrote:

> On Monday, 9 September 2013 at 07:00:23 UTC, Jacob Carlborg wrote:
>
>> On 2013-09-09 05:46, Manu wrote:
>>
>>> Missed the action...
>>>
>>> Well it's clear this is not a popular proposal.
>>> And even to me personally, it's certainly not of critical importance. If
>>> there was a single thing I'd like to see *DONE* in D, it would be
>>> temporary/r-value->ref args, without question (really, really annoying
>>> to work around).
>>>
>>
>> So what's wrong with this approach, that's already working today:
>>
>> class Foo
>> {
>>     void foo ();
>>
>>     void foo ()
>>     {
>>
>>     }
>> }
>>
>> void main ()
>> {
>>     auto foo = new Foo;
>>     foo.foo();
>> }
>>
>> BTW, this feature was implemented because you asked for it.
>>
>
> This is super useful to generate boilerplate from compile time reflection !
>

Which is what I requested it for, and use it very extensively.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130909/d9e5c439/attachment.html>


More information about the Digitalmars-d mailing list