@ enum type

This commit is contained in:
agra
2026-02-14 14:52:39 +02:00
parent fe7efeadb0
commit d61c6488f3
12 changed files with 164 additions and 41 deletions

View File

@@ -10,10 +10,10 @@ main :: () {
v := Vec2.{ 1.0, 2.0 };
print("before: {}\n", v);
set_x(&v, 99.0);
set_x(@v, 99.0);
print("after: {}\n", v);
ptr := &v;
ptr := @v;
copy := ptr.*;
print("copy: {}\n", copy);
@@ -22,7 +22,7 @@ main :: () {
// many-pointer indexing
arr : [5]s32 = .[10, 20, 30, 40, 50];
mp : [*]s32 = &arr[0];
mp : [*]s32 = @arr[0];
print("mp[0] = {}\n", mp[0]);
print("mp[2] = {}\n", mp[2]);
}