Type alias fails to compile correctly on tutorial website
import std::io;
alias Callback = fn void();
fn void main()
{
io::printfn("hello, world");
}
produces this error on the tutorial website when 'run' is pressed:
1: import std::io;
2: alias Callback = fn void();
^^^^^
(:2:1) Error: A type name was expected, but this looks a variable or function name (as it doesn't start with an uppercase letter).
which is obviously incorrect.
The same little test run on an up-to-date Arch Linux system with the latest version of c3c installed (0.7.2) compiles without error and runs correctly. I am guessing that the tutorial site (https://www.learn-c3.org/) is using an older version of the compiler that exhibits this bug.
Sadly, learn-c3 is way out of date.
Well, then sadly it gives a very bad impression of the C3 project for people like me who waste time using it and more time posting an issue.
At the very least there ought to be a notice on the tutorial site warning people that it is behind the times. If it isn't your site and the person responsible won't do this, then a warning/disclaimer on your site would be useful.
No it isn't mine and I didn't set it up unfortunately. Are there still links to it on the main site?
There do not appear to be links to it on https://c3-lang.org . But the problem is that it is a prominent hit when you search for "c3 language" and that site says nothing about not being directly affiliated with your project. So the lack of maintenance of the site reflects badly on your project.
Now that I understand the circumstances, unless you can persuade the owner of https://learn-c3.org/ to either take it down or post a note that it is out of date or bring it up to date, I again urge you to post a notice on https://c3-lang.org explaining that https://learn-c3.org/ is not affiliated with your project, it is out of date, and you discourage using it unless and until it is made current.