Recreated most of the demo code from talk

This commit is contained in:
nothke
2024-08-12 19:24:48 +02:00
parent 0730b9f6c4
commit 2030301fdb
5 changed files with 309 additions and 102 deletions

View File

@@ -1,9 +1,12 @@
const main = @import("main.zig");
member: i32,
// Must be pub to be available to other files
pub const pi = 3.14;
pub fn add() i32 {
pub fn infiniteLoop() i32 {
try main.main();
return 3;
return 0;
}