This commit is contained in:
ProgramSnail 2023-03-31 12:10:12 +03:00
parent 582ad5668e
commit 0d62ae0814
29 changed files with 99479 additions and 1166 deletions

9
tests/memory.lang Normal file
View file

@ -0,0 +1,9 @@
struct StructWithRef =
& @Int._ // unique pointer to any-sized array (default size is zero ??)
decl test_memory : Unit -> Unit
def test_memory = {
const @unique_ref1 <- @5 // move unique reference
var @unique_ref2 <- @(Array.of 1 2 3)
// ?? reference to constant value ??
}