[VER] v0.3.6-alpha
Some checks failed
Release Build / build-linux-x64 (push) Failing after 26s
Release Build / build-windows-x64 (push) Failing after 34s

[Feat] 增加控制台在线安装器 !
[Impl] 修改ExampleCodes的一些实现,使用最新库 std.io
This commit is contained in:
2026-01-04 00:51:11 +08:00
parent 893eb1050f
commit c93840af5f
10 changed files with 223 additions and 14 deletions

View File

@@ -1,10 +1,11 @@
import std.io;
func greeting(name:String) -> String
{
return "Hello " + name + "!";
}
const print := __fstdout_println; // link to std out
print(greeting("Fig"));
io.println(greeting("Fig"));
func adder(x)
{
@@ -12,4 +13,4 @@ func adder(x)
}
const add2 = adder(2);
print(add2(3));
io.println(add2(3));