Incorporating D

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Jan 25 16:26:05 PST 2013


On 1/25/13 6:53 PM, Namespace wrote:
> On Friday, 25 January 2013 at 23:16:09 UTC, Andrei Alexandrescu wrote:
>> On 1/25/13 4:39 PM, Namespace wrote:
>>> On Friday, 25 January 2013 at 20:45:22 UTC, Szymon wrote:
>>>> Hi,
>>>>
>>>> I would really like to start using D in our small company as a
>>>> C++ replacement. With that in mind I do have few questions:
>>>>
>>>> 1) Is D2 really ready for production code?
>>>
>>> Not really. A big pain in the ass is the missing rvalue ref that C++
>>> has. So using structs is a big disaster. But there are plenty of other
>>> missing features.
>>
>> I have discussed a few possible designs at
>> http://d.puremagic.com/issues/show_bug.cgi?id=9238. I actually have in
>> mind a design that I'd choose, but haven't had the time to write it.
>
> The choosen syntax was "auto ref".
> There is still a Pull which waits for completeness and merging (#1019).
> It hurts this much because this issue is dicussed since a year and there
> is still no implemented solution. structs are now lvalues, so this error
> is fixed, but the rvalue ref is still missing. So struct usage is more
> unhandy as anytime before.

We better get this right and not hurry about this.

>> What other features are you referring to?
>
> Oh I have a list, but the auto ref problem is my most favorite of
> missing features.
> Another example would be the scope storage class (and with it also "in").

What languages have that feature, and what makes it important? To me it 
seems rather niche and is easily worked around within the language.


Andrei


More information about the Digitalmars-d mailing list