Closed binji closed 9 years ago
memory foo i32; ... printI32(foo); // prints 8 (the address of foo) printI32(loadI32(foo)); // prints 0 (the value of foo)
This makes sense, but is not what the code looks like it is doing.
I changed the syntax to "memory foo 4 align 4;". No types, explicit alignment, less misleading, but still ugly.
memory foo i32; ... printI32(foo); // prints 8 (the address of foo) printI32(loadI32(foo)); // prints 0 (the value of foo)
This makes sense, but is not what the code looks like it is doing.