我對學習D感興趣。但是我有點被DMD轉向,因爲它不是完全開源的。這就是爲什麼我正在考慮使用LDC,但我不確定它是什麼狀態。在Debian軟件包,它說: Version: 1:0.14.0.dfsg-1
LDC already compiles a lot of D code, but should still be considered beta quality. Take a look at
我最近在我的Mac上通過hombrew安裝了ldc,並且正在測試運行腳本from the D wiki的代碼,當時我注意到使用ldmd2編譯我的程序後也不會運行我的程序。那麼有什麼區別呢,因爲這與運行ldc2的行爲是一樣的。 我的繼承人計劃 import std.stdio;
void main()
{
writeln("Hello, world without explicit c
此代碼與合同: import std.stdio;
int TestContract(int a)
in
{
assert(a > 0);
}
do
{
return a + 1;
}
int main(string[] args)
{
auto a = 2;
try
{
writeln(a," + 1 is ",