Re: Unsigned Integer Restraint Errors



On Mar 12, 1:23 pm, "Adam Beneschan" <a...@xxxxxxxxxx> wrote:
On Mar 12, 8:07 am, "frikk" <frik...@xxxxxxxxx> wrote:

LASTLY:
Please note that when I change the range value from 0 .. 5 to 0 ..
2**64-1, or 0 .. UNSIGNED_LONG_INT'Last, there is no constraint error
raised. This is the same behavior as the first example.

I missed this question the first time.
[...]

-- Adam


Thanks for the answers Adam. What you've said about the '-' makes
sense. I'll look into this.

The deal about how the constraint error being raised is outside the
scope of the procedure makes sense as well. I'll update my code to
reflect this.

So if I compile with gnato - should this fix my constraint error
raising? Basically I just need to be able to detect if the input is
outside the range - without using something like "if x < 0 or x >
2**64 then" ...

Thank you everyone!
Blaine

.



Relevant Pages

  • Re: The Sky Is Falling!!
    ... The DOW is 6600 and dangerously close to the 5900 forecast by Adam, ... hate for Adam to be correct for the first time in history AND it'll cost ... I even forcast oil would drop back below $30 in 2009 nearly three years ...
    (soc.culture.scottish)
  • Re: The Sky Is Falling!!
    ... The DOW is 6600 and dangerously close to the 5900 forecast by Adam, ... hate for Adam to be correct for the first time in history AND it'll cost ... I even forcast oil would drop back below $30 in 2009 nearly three years ... You'll owe me a pint before the years out too. ...
    (soc.culture.scottish)
  • Re: 133 finely tuned constants are required for life to exist
    ... I bet Diogenes wasn't raising a teenaged son. ... The pain of raising a teenaged son is relieved the first time he thanks ...
    (talk.origins)
  • Re: looking for good guitar tech in nj
    ... the neck relief and raising the action, but I have to set it pretty high to ... stop the buzzing. ... I may also have scored the tremolo studs or the knife edges of the tremolo ... The first time I did it, I loosened the strings, but it was ...
    (alt.guitar)
  • Re: Unsigned Integer Restraint Errors
    ... Thanks for the answers Adam. ... The deal about how the constraint error being raised is outside the ... So if I compile with gnato - should this fix my constraint error ...
    (comp.lang.ada)