New feature in git-head: Uniform construction for built-in types

Jonathan M Davis jmdavisProg at gmx.com
Wed Mar 26 23:10:22 PDT 2014


On Friday, March 07, 2014 12:41:23 Andrej Mitrovic wrote:
> https://github.com/D-Programming-Language/dmd/pull/1356 was recently
> merged (pull by Kenji), implementing this enhancement:
> https://d.puremagic.com/issues/show_bug.cgi?id=9112
> 
> Example code:
> 
> -----
> int n = int(1);
> 
> int *p = new int(1);
> assert(*p == 1);
> -----
> 
> I'm just curious what people think about the new feature. Discuss!

I've pushed for this for ages. Pointers to built-in types are seriously 
hampered without it, and it helps generic code considerably to have it. It was 
one of those things that I was shocked to find out didn't work from the get-
go.

- Jonathan M Davis


More information about the Digitalmars-d mailing list