Changed permission codes to only determine private/public/readonly

Changing permissions within the module was redundant and would have just
conflicted with the :mut type qualifier. This is easier to understand.
This commit is contained in:
Sasha Koshka
2022-08-18 12:09:17 -04:00
parent 15eb96e8ac
commit a548dcc585
5 changed files with 74 additions and 63 deletions

View File

@@ -1,19 +1,19 @@
:arf
---
data wr integer:Int 3202
data ro integer:Int 3202
data wr mutInteger:Int:mut 3202
data ro mutInteger:Int:mut 3202
data wr integerPointer:{Int}
data ro integerPointer:{Int}
data wr mutIntegerPointer:{Int}:mut
data ro mutIntegerPointer:{Int}:mut
data wr integerArray16:{Int 16}
data ro integerArray16:{Int 16}
data wr integerArrayVariable:{Int ..}
data ro integerArrayVariable:{Int ..}
data wr integerArrayInitialized:{Int 16}
data ro integerArrayInitialized:{Int 16}
3948 293 293049 948 912
340 0 2304 0 4785 92
@@ -22,11 +22,11 @@ data wr integerArrayInitialized:{Int 16}
# data wr mutIntegerPointerInit:{Int}:mut [& integer]
data wr object:Obj
data ro object:Obj
.this 324
.that 2139
data wr nestedObject:Obj
data ro nestedObject:Obj
.this
.bird0 324
.bird1 "hello world"
@@ -35,7 +35,7 @@ data wr nestedObject:Obj
.bird3 9328.21348239
# func rr main
# func ro main
# ---
# # TODO: set should be a special case, checking under itself for object
# member initialization args. it should also check for args in general