|
@@ -161,12 +161,12 @@ int my_func(int x) {
|
|
|
|
|
|
```
|
|
```
|
|
// left = function type, right = arguments type
|
|
// left = function type, right = arguments type
|
|
-// sw for use switch
|
|
|
|
-int sw = int x
|
|
|
|
-my_func 1 = 1
|
|
|
|
-my_func 5 = 5 * 2
|
|
|
|
-my_func 9 = 9 * 3
|
|
|
|
-my_func X = X * 4
|
|
|
|
|
|
+// "_sw" in function name' end for use switch (no "_sw" in dlang function name)
|
|
|
|
+int = int x
|
|
|
|
+my_func_sw 1 = 1
|
|
|
|
+my_func_sw 5 = 5 * 2
|
|
|
|
+my_func_sw 9 = 9 * 3
|
|
|
|
+my_func_sw X = X * 4
|
|
|
|
|
|
->
|
|
->
|
|
|
|
|
|
@@ -299,7 +299,7 @@ void _start(){ }
|
|
|
|
|
|
```
|
|
```
|
|
// wasm import from js
|
|
// wasm import from js
|
|
-void print int a
|
|
|
|
|
|
+void print = int a
|
|
|
|
|
|
->
|
|
->
|
|
|
|
|
|
@@ -405,12 +405,14 @@ __VERSION__
|
|
[deprecated keywords] body cdouble cent cfloat creal delete idouble ifloat ireal ucent
|
|
[deprecated keywords] body cdouble cent cfloat creal delete idouble ifloat ireal ucent
|
|
|
|
|
|
|
|
|
|
-dlang
|
|
|
|
use
|
|
use
|
|
as
|
|
as
|
|
-sw
|
|
|
|
ptn
|
|
ptn
|
|
ptns
|
|
ptns
|
|
|
|
+
|
|
|
|
+*_sw (function name end)
|
|
|
|
+
|
|
|
|
+dlang (dlang code without changes)
|
|
```
|
|
```
|
|
todo
|
|
todo
|
|
|
|
|