LONG_MAX in D
Unknown W. Brackets
unknown at simplemachines.org
Thu Aug 17 21:31:04 PDT 2006
Do you just want to know the maximum value stored in a signed size_t?
Isn't that ptrdiff_t.max? But if you don't know that, how is it useful?
(I mean, if you're not using that type to store it I hardly understand
what use the number is...)
D.learn is for learning the language, D is for talking about the
language. As far as I understand. I'd ask "how do I?" questions in
D.learn, but that's just me.
-[Unknown]
> nobody wrote:
>> long val;
>> long.max // works
>> val.max // also works
>
> LONG_MAX is "Maximal value which can be stored in a long int variable"
> (in C) and differs with platforms (e.g. 32 bit, 64 bit).
>
> long.max is fixed for a 64-bit integer.
>
>> 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.
>
> Perhaps you are right, but I felt that this isn't a question about
> learning the language itself and that D.learn might not be the best
> resource. What are the boundaries?
>
> Luís
More information about the Digitalmars-d
mailing list