From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Hi-Lite high integrity showcase and overflow errors
Date: Mon, 3 Sep 2012 20:05:16 -0700 (PDT)
Date: 2012-09-03T20:05:16-07:00 [thread overview]
Message-ID: <f9c3420e-7959-4ddf-b61c-d0eabbfdd197@googlegroups.com> (raw)
In-Reply-To: <269901b0-6570-4d7a-bcd4-19d590383515@googlegroups.com>
Forgive the multiple posts, but this might be a little bit clearer; I certainly like that the [word] Return is not repeated.
function Mult (X , Y : My_Int) return My_Int is
begin
Return Result : My_Int do
Result:= X*Y;
-- When the constraint is exceeded we return the last value.
exception
when Constraint_Error =>
Result:= My_Int'Last;
End Return;
end Mult;
next prev parent reply other threads:[~2012-09-04 3:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-03 21:56 Hi-Lite high integrity showcase and overflow errors Georg Bauhaus
2012-09-04 2:53 ` Shark8
2012-09-04 3:05 ` Shark8 [this message]
2012-09-04 8:30 ` Georg Bauhaus
2012-09-04 18:45 ` Shark8
2012-09-04 20:21 ` Florian Weimer
2012-09-04 21:24 ` Shark8
2012-09-05 9:25 ` yannick.moy
2012-09-05 9:19 ` yannick.moy
2012-09-05 11:15 ` Georg Bauhaus
2012-10-03 10:47 ` Florian Weimer
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox