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
@@ -1,6 +1,6 @@
|
||||
module mymodule;
|
||||
|
||||
extern func void printf(char *, ...);
|
||||
extern fn void printf(char *, ...);
|
||||
|
||||
errtype HelloErr
|
||||
{
|
||||
@@ -12,7 +12,7 @@ errtype ByeErr
|
||||
BAZ
|
||||
}
|
||||
|
||||
func void test()
|
||||
fn void test()
|
||||
{
|
||||
int! x = ByeErr.BAR!;
|
||||
|
||||
@@ -50,7 +50,7 @@ func void test()
|
||||
printf("None of the above\n");
|
||||
}
|
||||
}
|
||||
func void main()
|
||||
fn void main()
|
||||
{
|
||||
test();
|
||||
printf("Hello!\n");
|
||||
|
||||
Reference in New Issue
Block a user