Why is it that no one writes with portability in mind in druntime?

Gary Willoughby dev at nomad.so
Mon Nov 25 03:50:47 PST 2013


On Monday, 25 November 2013 at 11:15:00 UTC, froglegs wrote:
>>>int len = arr.length;
>
>  That isn't an error in D?
>
>  Every C++ code base I've worked in enables max 
> warnings/warnings as errors, this would never compile--
>
>  Does it at least trigger a warning?

Because `arr.length` returns a `size_t` value i would imagine 
this compiles fine on a 32bit OS but throws an error on a 64bit 
OS. I think this demonstrates precisely the problem.


More information about the Digitalmars-d mailing list