Phobos examples and auto

Steve Teale steve.teale at britseyeview.com
Mon Nov 7 08:51:36 PST 2011


On Mon, 07 Nov 2011 07:17:59 -0500, Steven Schveighoffer wrote:
> uint i = 5;
> uint j = i;
> uint k = j;
> uint l = k;
> 
> If I want to make this code 64-bit aware, I need to change all 4 lines.
> If these lines are scattered throughout the code, I have to play the
> cyclical compiler game, where I change the first one, then compile,
> change the second one, compile, etc.

Steve,

OK, you've uncovered a stark example of my ignorance there. The Types 
documentation does not as far as I can see mention any differences 
between a 32 bit and a 64 bit environment. It says simply that a uint is 
32 bits unsigned.

What is the change that has to be made in your example?

Steve



More information about the Digitalmars-d mailing list