@@ -41,7 +41,7 @@ main :: proc() {
4141
4242 // Divisor based modulo operator
4343 {
44- x: i128 = -5 ;
44+ x: i128 = -15 ;
4545 y: i128 = 2 ;
4646
4747 fmt.println (x % y); // Dividend based
@@ -73,6 +73,7 @@ main :: proc() {
7373 id: u64 ,
7474 position: [vector 2 ]f32 ,
7575 name: string ,
76+
7677 Tree{leaf_count: int },
7778 Frog{ribbit_volume: f32 },
7879 }
@@ -81,7 +82,7 @@ main :: proc() {
8182 e = Entity.Frog{ribbit_volume = 0.5 , name = " Trevor" };
8283
8384 if frog, ok := e.(Entity.Frog); ok {
84- fmt.printf (" %s the frog ribbit's at %f\n " , frog.name, frog.ribbit_volume);
85+ fmt.printf (" %s the frog ribbits at %f\n " , frog.name, frog.ribbit_volume);
8586 }
8687
8788 // Panics if the type assertion fails
@@ -153,7 +154,7 @@ main :: proc() {
153154
154155
155156
156- Float32Data :: bit_field {
157+ Float32Data :: bit_field #align 4 {
157158 fraction: 23 ,
158159 exponent: 8 ,
159160 sign: 1 ,
@@ -182,7 +183,7 @@ main :: proc() {
182183 }
183184
184185 // Goals for v0.4 and further
185- // * Compile as C++and use some of its constructs for sanity e.g. overloading
186+ // * Compile as C++ and use some of its constructs for sanity e.g. overloading
186187 // - Safe array with bounds checking
187188 // - Map type for self documentation
188189 // - u128 i128 acting like core types
@@ -196,4 +197,5 @@ main :: proc() {
196197 // - Foreign variables
197198 // * Documentation Generation System for code
198199 // * General Documentation for Odin
200+ // * Attributes
199201}
0 commit comments