-
Rusts central idea is to disallow mutability and aliasing at the same time (a little bit simplified). I'd like to discuss if it'd be useful to infuse a similar concept into a dynamic language.
Why…
-
Hey, I was reading the book and it's really helpful! I really would like to know what the fun way to get around mutability issues is.
-
I tried this code:
```rust
fn main() {
let mut tmp: usize = 3;
let immut_addr = &tmp as *const _;
let addr = immut_addr.cast_mut();
}
```
I expected to see this happen: the…
-
In my code I write to a sub-buffer. Due to https://github.com/kenba/opencl3/pull/27 this sub-buffer needs to be mutable. The buffer the sub-buffer is created from via [`Buffer::create_sub_buffer()`](h…
-
Decide what pieces of data should be mutable and document it. Eg results from `read*` or the first arg to `updateQuery`.
Migrated from https://github.com/apollographql/apollo-client/issues/3199#iss…
-
Consider this function:
```rust
pub fn f(xr : &mut Cell) -> i32 {
*xr = Cell::new(-1);
shouldnt_escape(&mut *xr);
*xr = Cell::new(1337); // the write should invalidate all children
…
-
I'm getting the impression that variables in Orange are global. For example, if our attachment table has `CLASS = {True, False}`, and our relations table has `CLASS = {Elaboration, Narration...}`, qu…
kowey updated
9 years ago
-
Nothing should stop someone from having a subtype of `AbstractSystem` that's mutable, and it could be useful for setting up geometries for simulations, especially if they're rather large and the overh…
-
I would like a marker trait that enforces only the `must not contain any uninit (or padding) bytes` requirement. In particular, it should allow interior mutability. While I cannot think of any safe fu…
-
This will greatly simplify Zlib and net.Blocklist in Deno as we have to wrap them in RefCell for mutability. Should be pretty easy to implement