Slices in D vs Go

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Sat Oct 19 08:21:26 PDT 2013


On Saturday, 19 October 2013 at 12:12:19 UTC, Daniel Davidson 
wrote:
>> I don't know where the [1,2,3] comes from.  The first 
>> original[1..$] will crash. Maybe you are forgetting the actual 
>> initialization of original with data?
>
> Ahh ok. You may want to point to the fact that you are 
> referring to a larger and complete code file linked at the 
> bottom of the page.

No, you are completely correct. I'd copied in the wrong sections. 
It is supposed to be something you can build, so I'll mention 
that.

(Also fixed spelling)


More information about the Digitalmars-d mailing list