RFC in Comparison between Rust, D and Go

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 9 23:31:41 PST 2015


On Monday, 9 November 2015 at 23:26:57 UTC, deadalnix wrote:
> On Monday, 9 November 2015 at 23:11:34 UTC, Vladimir Panteleev 
> wrote:
>> Great post, though languages that compile to C (e.g. Nim) are 
>> probably even better at interfacing with C/C++ than D. I'm 
>> sure D is #1 aside those though.
>
> I would not trust such language to have a precise semantic. 
> There is way too much undefined behavior in C for that.

The behaviour of a C program is well defined or implementation 
defined. Undefined behaviour only occurs when the specified 
program isn't a C program (e.g. breaks the rules of the 
language), but the compiler fails to detect it. The same holds 
for machine language.



More information about the Digitalmars-d mailing list