Declarations are now written |type| identifier;, generally. Functions are similar |void| func() {}, etc. Special declarations still work, etc
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import io;
|
||||
import mem;
|
||||
|
||||
int main() {
|
||||
int b;
|
||||
int* a = &b;
|
||||
|int| main() {
|
||||
|int| b;
|
||||
|int*| a = &b;
|
||||
a [ 0 ] = 7;
|
||||
print(a [ 0 ] );
|
||||
print(*a);
|
||||
|
||||
Reference in New Issue
Block a user