LONG_MAX in D

nobody nobody at mailinator.com
Thu Aug 17 16:26:00 PDT 2006


Luís Marques wrote:
> Hi again,
> 
> What is the best way to compute LONG_MAX in D? (as of limits.h)
> size_t / 2?
> 
> Luís

Properties for Integral Types
http://digitalmars.com/d/property.html

.init		initializer (0)
.max		maximum value
.min		minimum value

   long val;
   long.max // works
   val.max  // also works

Also wanted to suggest that D.learn might be a more responsive place to ask this 
sort of question. This NG seems to be more meta-D than anything-D (while both 
happen). You will want to come back here to see the next mega wave of discussion 
about getting import to work, whether consts are good or evil, how auto should 
work and pretty much anything related to the way classes are implemented.



More information about the Digitalmars-d mailing list