From: Simon Wright <simon@pushface.org>
Subject: Re: 'raise' in aspects?
Date: Fri, 24 Oct 2014 08:20:13 +0100
Date: 2014-10-24T08:20:13+01:00 [thread overview]
Message-ID: <lyy4s67x3m.fsf@pushface.org> (raw)
In-Reply-To: m2c080$gb0$1@loke.gir.dk
"Randy Brukardt" <randy@rrsoftware.com> writes:
> You can write
> raise Program_Error with "Not yet implemented";
> in any function (since a raise expression matches any type), and you don't
> have to dream up a useless dummy return value to do so.
actually
return raise Program_Error with "Not yet implemented";
of course.
I liked (but haven't had reason to try; I had already spent far too long
generating "useless dummy return values") Bob Duff's recursive solution:
function F return Boolean is
begin
raise Program_Error with "Not yet implemented";
return F;
end F;
next prev parent reply other threads:[~2014-10-24 7:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-18 22:40 'raise' in aspects? Stephen Leake
2014-10-22 5:42 ` Simon Wright
2014-10-22 5:45 ` Simon Wright
2014-10-22 18:08 ` Stephen Leake
2014-10-23 22:42 ` Randy Brukardt
2014-10-24 3:22 ` Shark8
2014-10-24 7:20 ` Simon Wright [this message]
2014-10-26 5:16 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox