'int' is enough for 'length' to migrate code from x86 to x64

FrankLike via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 21 04:24:13 PST 2014


On Friday, 21 November 2014 at 09:43:04 UTC, Kagamin wrote:
> On Thursday, 20 November 2014 at 16:34:12 UTC, flamencofantasy

> C# doesn't encourage usage of unsigned types and warns that 
> they are not CLS-compliant. You're going against established 
> practices there. And signed types for numbers works wonders in 
> C# without any notable problem and makes reasoning about code 
> easier as you don't have to manually check for unsigned 
> conversion bugs everywhere.
>

> That's the whole point: mixing signed with unsigned is 
> bug-prone. Worse, it's inevitable if you force unsigned types 
> everywhere.

Right.

Druntime should have a checksize_t.d....


Frank


More information about the Digitalmars-d mailing list