www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Array's Length keep the same value on x86 and on x64 ,it will be help

reply " FrankLike" <1150015857 qq.com> writes:
Hi,everyone,

Array's Length keeps the same value on x86 and on x64 ,it will be 
help for compile the same codes.

       Now,I compile the codes that works on x86 is ok,but on x64 
,array's length's value type is ulong,the codes are very 
more,modify them that is a big work.
       I think array's length's value type is  uint for most of 
the conditions ,not only on 86 ,but also on x64.
     If someone want to use ulong, add a property 'longlength' is 
a good thing,
do you think about it?

Thank you.

Frank
Apr 20 2014
parent reply "monarch_dodra" <monarchdodra gmail.com> writes:
On Sunday, 20 April 2014 at 10:57:30 UTC, FrankLike wrote:
 Hi,everyone,

 Array's Length keeps the same value on x86 and on x64 ,it will 
 be help for compile the same codes.

       Now,I compile the codes that works on x86 is ok,but on 
 x64 ,array's length's value type is ulong,the codes are very 
 more,modify them that is a big work.
       I think array's length's value type is  uint for most of 
 the conditions ,not only on 86 ,but also on x64.
     If someone want to use ulong, add a property 'longlength' 
 is a good thing,
 do you think about it?

 Thank you.

 Frank
You've already asked this question: http://forum.dlang.org/thread/uxovgaptnpmuusmdpgju forum.dlang.org You've already been told its by design.
Apr 20 2014
parent " FrankLike" <1150015857 qq.com> writes:
 You've already asked this question:
 http://forum.dlang.org/thread/uxovgaptnpmuusmdpgju forum.dlang.org

 You've already been told its by design.
Thank you.
Apr 20 2014