我是一名 C# 开发人员,偶然发现了一种名为 vala 的新 Linux 编程语言。它的语法几乎与 C# 完全相同,非常棒。我从来都不是 Mono 的忠实粉丝。这允许程序员用 C# 风格的语言编写 GTK+ 应用程序。我的问题是:vala 会被编译成 C 语言吗?
最佳答案
是的,Vala 直接编译成 C。来自 Vala 主页:
valac produces C source and header files from Vala source files as if you've written your library or application directly in C. Using a Vala library from a C application won't look different than using any other GObject-based library. There won't be a vala runtime library and applications can distribute the generated C code with their tarballs, so there are no additional run- or build-time dependencies for users.
您可以阅读更多相关信息 here (还可以获得教程、邮件列表等)。这是一个非常有趣的项目。
关于c - Vala(类 C# 语言)编译成 C?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/652738/