comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: if Restrict_Func /= null confusion
Date: Sun, 30 Mar 2008 23:36:02 +0200
Date: 2008-03-30T23:36:02+02:00	[thread overview]
Message-ID: <877ifj99od.fsf@ludovic-brenta.org> (raw)
In-Reply-To: 95f36a62-b94c-4211-896a-300fa98932b7@x41g2000hsb.googlegroups.com

ma740988@gmail.com writes:
> I'm not following the conditional logic 'if (Restrict_Func / =
> null)'.  Not understanding the impetus behind the check for null.

If Restrict_Func is null and you try to call the subprogram it
designates, you get a Constraint_Error (ARM 4.9(13)).  If you disable
runtime checks, your program is likely to crash.

-- 
Ludovic Brenta.



  parent reply	other threads:[~2008-03-30 21:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-30 20:58 if Restrict_Func /= null confusion ma740988
2008-03-30 21:34 ` jimmaureenrogers
2008-03-30 21:36 ` Ludovic Brenta [this message]
2008-03-30 21:37 ` Robert A Duff
2008-03-30 21:44 ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox