Why D is not popular enough?

John Smith via Digitalmars-d digitalmars-d at puremagic.com
Sun Aug 21 01:58:38 PDT 2016

On Friday, 19 August 2016 at 02:59:40 UTC, Adam D. Ruppe wrote:
> On Thursday, 18 August 2016 at 22:50:27 UTC, John Smith wrote:
>> Garbage collector is in a few libraries as well. I think the 
>> only problem I had with that is that the std.range library has 
>> severely reduced functionality when using static arrays.
> std.range is one of the libraries that has never used the GC 
> much. Only tiny parts of it ever have,
> Moreover, dynamic arrays do not necessarily have to be GC'd. 
> Heck, you can even malloc them if you want to 
> (`(cast(int*)malloc(int.sizeof))[0 .. 1]` gives an int[] of 
> length 1).
> This has been a common misconception lately... :(

Never really said that was the case. The restriction was caused 
for the need to be able to change the length of the array. Which 
you can't do: (cast(int*)malloc(int.sizeof))[0 .. 1].length = 0. 
If that wasn't std.range then it was something else, it's been a 
while since I used it.

More information about the Digitalmars-d mailing list