DIP(?) Warning to facilitate porting to other archs

Manu via Digitalmars-d digitalmars-d at puremagic.com
Thu May 1 18:24:27 PDT 2014


On 1 May 2014 21:17, Temtaime via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> Hi everyone.
> I think it's need to have -w64(or other name, offers ?) flag that warns if
> code may not compile on other archs.
>
> Example:
> size_t a;
> uint b = a; // ok on 32 without a warning but fail on 64 with error
>
> And on 32 with -w64 it'll be :
> Warning : size_t.sizeof may be greater than 32 bit
>
> What you thinks ?
> Should i create proposal or nobody cares about porting and it's useless ?
>
> Any ideas are welcome.

Definitely a good idea. I've noticed a few of such super-helpful
portability warnings don't seem to be present in D compared to other
compilers.


More information about the Digitalmars-d mailing list