Giving up

Walter Bright newshound2 at digitalmars.com
Sat Aug 6 10:36:25 UTC 2022


On 8/6/2022 2:02 AM, Tim wrote:
> It could silently break code if the right function is defined. The following 
> example is valid in C and D (except import/include), but prints a different value:
> 
> ```D
> // #include <stdio.h>
> import core.stdc.stdio;
> 
> int E2(int i)
> {
>      return i;
> }
> 
> int main()
> {
>      float f = 123.E2;
>      printf("%f\n", f);
>      return 0;
> }


Congrats, you got me there!


More information about the Digitalmars-d-announce mailing list