3 ms·
C++ smart pointers won't prevent you from making the mistake that the OP was about: giving out a reference to an interior object without limiting the lifetime f
by dochtman 10y ago
C++ smart pointers won't prevent you from making the mistake that the OP was about: giving out a reference to an interior object without limiting the lifetime for that reference.
I meant dependency tracking in terms of which libraries you need what versions of. Incremental compilation as a project in nightly is about improving compile times only, not about any functional change in build system/project management tooling. In this context, I'm not sure what you mean by tracking objects across dependencies.
- jhasse 10y ago> Incremental compilation as a project in nightly is about improving compile times only, not about any functional change in build system/project management tooling. Keeping compile times to a minimum is an essential task of a build system for me. That's why I wouldn't say that "build systems are a solved problem" in Rust. > In this context, I'm not sure what you mean by tracking objects across dependencies. When I make a change in one file in a crate, this triggers a complete rebuild of all the dependent crates.
- Manishearth 10y ago> When I make a change in one file in a crate, this triggers a complete rebuild of all the dependent crates. That's the same thing as incremental compilation.
- jhasse 10y agoWell the difference is that the implementation of incremental builds in Rust nightly doesn't handle this case yet AFAIK.
- Manishearth 10y agoOh, I see what you mean. I think it's planned.