-
https://ocfl.github.io/extensions/0005-mutable-head.html
-
# 🐛 Bug
Compiler V1 can compile the following program but compiler V2 will give an error.
## To reproduce
**Code snippet to reproduce**
```move
module 0xCAFE::Module0 {
public fun functi…
zzjas updated
5 hours ago
-
After solving #154, the next step is to make the same work for generic ADTs.
```rust
#[var(field)]
struct S {
field: i32,
}
struct Gen(T);
fn set_gen_field(mut g: Gen) -> Gen {
g.0.fie…
-
The ruby-vips binding has a nice feature for encapsulating destructive operations, like metadata change or the draw operations:
https://www.libvips.org/2021/03/08/ruby-vips-mutate.html
tldr: you…
-
The compiler doesn't seem to take into account the immutability of global let bindings, so the following program compiles and runs happily:
```
let counter: Int = 0 // should be an immutable variabl…
-
https://review.gerrithub.io/c/cue-labs/oci/+/1176886 implemented tag immutability in the ocimem package, but it defaults to tags being mutable due to backwards compatibility, which I think is a mistak…
mvdan updated
4 weeks ago
-
I'm not sure if this error is related to ImGui or MoltenVK. However, since this flickering is not observed when testing the same code in a Windows environment with NVIDIA drivers, I am raising this is…
-
This could be an advanced section with hazards all over it that discusses how to mutate R objects in place.
This is against the clone on write (Cow) rules of R. BUT if you created and own all of t…
-
### I tried this:
Reassigning a field of a struct
```js
bring cloud;
struct Person {
name: str;
age: num;
}
let person = Person { name: "Alice", age: 30 };
person.age += 1;
```
#…
-
With the advent of lock-free APIs, it seems that the following pattern will become more and more useful with objects:
```ocaml
object
val x = Atomic.make v
method foo =
let v = Atomic.ge…
toots updated
1 month ago