Remove implicit this for now

This commit is contained in:
nub31
2025-08-13 20:30:43 +02:00
parent 89c83e5de0
commit e80f853211
4 changed files with 6 additions and 39 deletions

View File

@@ -1,16 +1,6 @@
extern func puts(fmt: cstring)
interface Printable
{
func print()
}
interface Stringable
{
func str(): cstring
}
struct Human : Printable, Stringable
struct Human
{
name: cstring
@@ -18,11 +8,6 @@ struct Human : Printable, Stringable
{
return this.name
}
func print()
{
puts(this.str())
}
}
func main(args: []cstring): i64
@@ -32,7 +17,6 @@ func main(args: []cstring): i64
}
puts(human.str())
// human.print()
return 0
}