Slicing, not as modern as you thought

Walter Bright newshound2 at digitalmars.com
Mon Jul 8 08:20:08 UTC 2019


On 7/8/2019 12:32 AM, Patrick Schluter wrote:
> The game changing detail in D is that [] is a fat pointer supported by the 
> language. So no heroic efforts to bind the pointer with the length as is require 
> in C.

Yup. A simple detail makes all the difference. It enables array bounds checking, 
too :-)

https://www.digitalmars.com/articles/b44.html




More information about the Digitalmars-d mailing list