From 6ead9f417fabd55cc26a93c6d54bdde1110fccd4 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 2 Feb 2025 19:10:44 +0000 Subject: Add runtime support for relational int operations --- examples/37-struct-methods/src/HelloWorld.shed | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 examples/37-struct-methods/src/HelloWorld.shed (limited to 'examples/37-struct-methods/src/HelloWorld.shed') diff --git a/examples/37-struct-methods/src/HelloWorld.shed b/examples/37-struct-methods/src/HelloWorld.shed deleted file mode 100644 index cfba064d..00000000 --- a/examples/37-struct-methods/src/HelloWorld.shed +++ /dev/null @@ -1,17 +0,0 @@ -pub fun main() ! Io -> Unit { - print!(Count(1).message()); - print!(Count(2).message()); - print!(Count(3).message()); -} - -struct Count(value: Int) { - fun message(this) -> String { - if (this.value == 1) { - "one\n" - } else if (this.value == 2) { - "two\n" - } else { - "many\n" - } - } -} -- cgit v1.2.3