More D newb questions.

BCS BCS at pathlink.com
Mon May 5 16:19:06 PDT 2008


Derek Parnell wrote:
>>>Similarly, there's no technical reason for not allowing 
>>>lvalue slice assignments to grow or shrink the target,
>>>or do overlapping copies. 

[...]
> 
> 
> Huh? Why would the length change? t[5..5] = "," should fail because the
> left and right sides of the assign are different lengths.
> 

I may be miss reading the OP but I think he was suggesting that D allow 
assigning a slice of one size to a slice of another where this would 
change the length of the array that was assigned into. If I'm wrong, I'm 
wrong.



More information about the Digitalmars-d mailing list