vector crash

zjh fqbqrr at 163.com
Thu Jan 18 03:11:57 UTC 2024


On Thursday, 18 January 2024 at 03:07:13 UTC, zjh wrote:

> Why can `b` still affect `e` here? Isn't `b` copied?
> here foreach crashes.


Starting from the `third one`, it crashes. It's clearly 
`vector.d`, but the result is`+Object`.
```d
string b=d[i];//the 3th:vector.d
//`+Object`,crashes!
```



More information about the Digitalmars-d-learn mailing list