Friendly-C

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 28 00:36:26 PDT 2014


Found through Reddit. A nice incomplete list that specifies a 
"friendly C" that replaces many occurrences of "X has undefined 
behavior" with "X results in an unspecified value":

http://blog.regehr.org/archives/1180

But I agree with one comment:

>memcpy and memmove ought to remain distinct, but I think that an 
>overlapping memcpy ought to result in unspecified garbage being 
>written rather than undefined behavior.<

Bye,
bearophile


More information about the Digitalmars-d mailing list