Change interface symbol from ~ to &
This commit is contained in:
@@ -29,7 +29,7 @@ define void @"0zNZN147MN2wzMAQ6NS2dQ==::T.do"(ptr %this) {
|
||||
}
|
||||
`,
|
||||
`
|
||||
Doer: (~ [do])
|
||||
Doer: (& [do])
|
||||
T: Int
|
||||
T.[do] = { }
|
||||
|
||||
@@ -70,7 +70,7 @@ define i64 @"0zNZN147MN2wzMAQ6NS2dQ==::Number.number"(ptr %this) {
|
||||
}
|
||||
`,
|
||||
`
|
||||
Numbered: (~ [number]: Int)
|
||||
Numbered: (& [number]: Int)
|
||||
Number: Int
|
||||
Number.[number]: Int = [.this]
|
||||
|
||||
@@ -173,7 +173,7 @@ declare %"AAAAAAAAAAAAAAAAAAAAAA==::Index" @"0zNZN147MN2wzMAQ6NS2dQ==::write"(%"
|
||||
`
|
||||
[write fd:File buffer:*Byte count:Index]: Index
|
||||
|
||||
Writer: (~ [write buffer:*:Byte]: Index)
|
||||
Writer: (& [write buffer:*:Byte]: Index)
|
||||
File: I32
|
||||
File.[write buffer:*:Byte]:Index = [write [.this] [~*Byte buffer] [#buffer]]
|
||||
|
||||
@@ -208,7 +208,7 @@ define void @main() {
|
||||
declare %"AAAAAAAAAAAAAAAAAAAAAA==::Index" @"0zNZN147MN2wzMAQ6NS2dQ==::File.write"(ptr %this, { ptr, %"AAAAAAAAAAAAAAAAAAAAAA==::Index" } %buffer)
|
||||
`,
|
||||
`
|
||||
Writer: (~ [write buffer:*:Byte]: Index)
|
||||
Writer: (& [write buffer:*:Byte]: Index)
|
||||
A: (. output: Writer)
|
||||
File: I32
|
||||
File.[write buffer:*:Byte]:Index
|
||||
@@ -241,7 +241,7 @@ define i64 @"0zNZN147MN2wzMAQ6NS2dQ==::Impl.x"(ptr %this) {
|
||||
}
|
||||
`,
|
||||
`
|
||||
Face: (~ [x]:Int)
|
||||
Face: (& [x]:Int)
|
||||
Impl: Int
|
||||
Impl.[x]:Int = 5
|
||||
[main] 'main' = {
|
||||
|
||||
@@ -116,7 +116,7 @@ declare %"AAAAAAAAAAAAAAAAAAAAAA==::Index" @"1cqXRNyHN06gi9QQb4GCsg==::File.writ
|
||||
+ [write file:FileDescriptor buffer:*Byte count:Index]: Index 'write'`,
|
||||
|
||||
"io.fspl",
|
||||
`+ Writer: (~ [write buffer:*:Byte]: Index)
|
||||
`+ Writer: (& [write buffer:*:Byte]: Index)
|
||||
+ File: cstdio::FileDescriptor
|
||||
+ File.[write buffer:*:Byte]:Index =
|
||||
cstdio::[write
|
||||
|
||||
@@ -21,7 +21,7 @@ declare %"0zNZN147MN2wzMAQ6NS2dQ==::AllTypes" @"0zNZN147MN2wzMAQ6NS2dQ==::x"()
|
||||
`,
|
||||
`
|
||||
Point: (.x:Int y:Int)
|
||||
Pegasus: (~
|
||||
Pegasus: (&
|
||||
[clear clouds:*:Point]
|
||||
[fly rings:*:Point]
|
||||
[fall distance:Int]
|
||||
@@ -154,7 +154,7 @@ SmallU: (| I8 U8 I16 U16)
|
||||
Point: (. x:Int y:Int)
|
||||
Padded: (. a:I8 b:I16)
|
||||
PaddedU: (| Padded)
|
||||
Error: (~ [error]:String)
|
||||
Error: (& [error]:String)
|
||||
PointOrError: (| Point Error)
|
||||
[main] = {
|
||||
u:U
|
||||
|
||||
Reference in New Issue
Block a user