mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Complete transition to fn. Introduce global/threadlocal
This commit is contained in:
committed by
Christoffer Lerno
parent
e2621617f1
commit
b52b42d4da
@@ -16,21 +16,21 @@ enum MyEnum
|
||||
B
|
||||
}
|
||||
|
||||
func void Foo.hello(Foo *f)
|
||||
fn void Foo.hello(Foo *f)
|
||||
{
|
||||
io::println("Hello from Foo");
|
||||
}
|
||||
|
||||
func void Bar.hello(Bar *b)
|
||||
fn void Bar.hello(Bar *b)
|
||||
{
|
||||
io::println("Hello from Bar");
|
||||
}
|
||||
|
||||
func void MyEnum.hello(MyEnum *myenum)
|
||||
fn void MyEnum.hello(MyEnum *myenum)
|
||||
{
|
||||
io::println("Hello from MyEnum");
|
||||
}
|
||||
func void main()
|
||||
fn void main()
|
||||
{
|
||||
Foo f;
|
||||
Bar b;
|
||||
|
||||
Reference in New Issue
Block a user