Thread overview
[phobos] phobos commit, revision 1589
Jun 08, 2010
dsource.org
Jun 11, 2010
Masahiro Nakagawa
Jun 11, 2010
Masahiro Nakagawa
June 08, 2010
phobos commit, revision 1589


user: andrei

msg:
Added file and line information to conversion errors; added brackets '[' and ']' around arrays and associative arrays as defaults; added emplace() for non-class types.

http://www.dsource.org/projects/phobos/changeset/1589

June 11, 2010
Sorry for the late reply.

Why std.conv? emplace seems to be fundamental function in D. I think druntime is better than std.conv.


Masahiro

On Wed, 09 Jun 2010 02:20:45 +0900, dsource.org <noreply at dsource.org> wrote:

> phobos commit, revision 1589
>
>
> user: andrei
>
> msg:
> Added file and line information to conversion errors; added brackets '['
> and ']' around arrays and associative arrays as defaults; added
> emplace() for non-class types.
>
> http://www.dsource.org/projects/phobos/changeset/1589
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
June 11, 2010
It's a good question. I didn't want to add stuff to object.d without very solid reasons, and std.conv seemed to be a good place as emplace converts untyped memory to typed objects.

Andrei

Masahiro Nakagawa wrote:
> Sorry for the late reply.
> 
> Why std.conv? emplace seems to be fundamental function in D. I think druntime is better than std.conv.
> 
> 
> Masahiro
> 
> On Wed, 09 Jun 2010 02:20:45 +0900, dsource.org <noreply at dsource.org> wrote:
> 
>> phobos commit, revision 1589
>>
>>
>> user: andrei
>>
>> msg:
>> Added file and line information to conversion errors; added brackets
>> '[' and ']' around arrays and associative arrays as defaults; added
>> emplace() for non-class types.
>>
>> http://www.dsource.org/projects/phobos/changeset/1589
>>
>> _______________________________________________
>> phobos mailing list
>> phobos at puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/phobos
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
June 12, 2010
On Sat, 12 Jun 2010 00:05:12 +0900, Andrei Alexandrescu <andrei at erdani.com> wrote:

> I didn't want to add stuff to object.d without very solid reasons

I agree. In this case, I thought emplace is true.

> std.conv seemed to be a good place as emplace converts untyped memory to typed objects.

OK, I understand.


Masahiro
June 12, 2010
If Sean and Walter agree, let's move emplace to object.di. Guys, take a look at emplace's documentation at the bottom of

http://www.dsource.org/projects/phobos/browser/trunk/phobos/std/conv.d

(a bit later; dsource is down right now.)

Andrei

Masahiro Nakagawa wrote:
> On Sat, 12 Jun 2010 00:05:12 +0900, Andrei Alexandrescu <andrei at erdani.com> wrote:
> 
>> I didn't want to add stuff to object.d without very solid reasons
> 
> I agree. In this case, I thought emplace is true.
> 
>> std.conv seemed to be a good place as emplace converts untyped memory to typed objects.
> 
> OK, I understand.
> 
> 
> Masahiro
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos