We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baf8122 commit 472189fCopy full SHA for 472189f
proposals/wat-numeric-values/Overview.md
@@ -2,7 +2,30 @@
2
3
## Summary
4
5
-TODO
+* Currently, the data segments can only be written in strings.
6
+
7
+ ```wat
8
+ (data (offset (i32.const 0)) "1234") ;; 3132 3334
9
+ ```
10
11
+ (data (offset (i32.const 0)) "\09\ab\cd\ef") ;; 09ab cdef
12
13
14
+* This proposal proposes an alternative writing format in numeric values.
15
16
17
+ (data (offset (i32.const 0))
18
+ (f32 0.2 0.3 0.4) ;; cdcc 4c3e 9a99 993e cdcc cc3e
19
+ )
20
21
22
+ (memory $1
23
+ (data
24
+ (i8 1 2) ;; 0102
25
+ (i16 3 4) ;; 0300 0400
26
27
28
29
30
## Motivation
31
0 commit comments