ncbray / wassembler

http://ncbray.github.io/wassembler/
Apache License 2.0
19 stars 5 forks source link

Slightly confusing that memory names refer to addresses (even though they're typed) #1

Closed binji closed 9 years ago

binji commented 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.

ncbray commented 9 years ago

I changed the syntax to "memory foo 4 align 4;". No types, explicit alignment, less misleading, but still ugly.