From d3b6e88b14dd0188aa4878a9660af47e4f7b2415 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sun, 10 May 2026 04:03:50 +0200 Subject: [PATCH] Running simple app --- mist-test/src/app.mist | 4 ++-- mist-test/src/main.mist | 14 +++++--------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/mist-test/src/app.mist b/mist-test/src/app.mist index f19c4f4..3ffd4ec 100644 --- a/mist-test/src/app.mist +++ b/mist-test/src/app.mist @@ -13,8 +13,8 @@ public class Application { bool running; i32 ticks; - public constructor(String name) { - self.name = name; + public constructor(str* name) { + self.name = name.to_string(); self.tasks = new Vec(); self.plugins = new Vec(); diff --git a/mist-test/src/main.mist b/mist-test/src/main.mist index 688fbde..8b0ab54 100644 --- a/mist-test/src/main.mist +++ b/mist-test/src/main.mist @@ -4,16 +4,12 @@ mod plugin; mod logger; mod event; -use ; -// use ; -// use ; - void main() { - var app = new app::Application("mist-app"); + var mut app_instance = new app::Application("mist-app"); - // greeting::register(&mut app); - // statistics::register(&mut app); + // greeting::register(&mut app_instance); + // statistics::register(&mut app_instance); - app.boot(); - app.run(); + app_instance.boot(); + app_instance.run(); } \ No newline at end of file