ivellapillil
MModular
•Created by ivellapillil on 10/24/2024 in #questions
Preserving mutability when passing to function
How to make pointer passed to a function preserve/transmit its mutability?
Or is it a conscious constraint on
Pointer
and we should use UnsafePointer
or Arc
here?42 replies
MModular
•Created by ivellapillil on 7/23/2024 in #questions
Bug or optimisation
The following code:
indicates that both initialised empty struct has the same address. Are empty structs automatically "singleton"? Or is it a bug in the compiler? I am using Mac M1.
7 replies