DIP(?) Warning to facilitate porting to other archs
Chris via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 2 04:41:57 PDT 2014
On Thursday, 1 May 2014 at 11:17:10 UTC, Temtaime 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.
Why not? I had some minor difficulties porting from 32 to 64bit.
I think it's a good idea to let the user know beforehand that
there might be problems when porting. If you find that out when
you are already on a 64 or 32bit machine, it's a bit annoying to
go back and change the code.
More information about the Digitalmars-d
mailing list