Add char * which is supposed to work like in C and int

This commit is contained in:
Krzosa Karol
2022-06-12 11:58:36 +02:00
parent 4d6a8efd06
commit cd3098da45
8 changed files with 43 additions and 76 deletions

View File

@@ -28,7 +28,9 @@ imp_array := [5]S64{1,2}
imp_array_c: [5]S64 = {[0] = 1, [2] = 2, [1] = 0} // @todo this should be illegal
// without_size: []S64 = {} // @todo: this should be slice, converting from array should be implicit
string: char = "string"
string: *char = "string"
first_letter := string[0]
decl_char: char = 55
//-----------------------------------------------------------------------------
// Pointers