comp.lang.ada
 help / color / mirror / Atom feed
From: "Florian Haag" <florianhaag@yahoo.de>
Subject: Re: Access1 := new Accessed_Type; Access1 = Access2 ...?!
Date: Mon, 29 Nov 2004 18:54:31 +0100
Date: 2004-11-29T18:54:31+01:00	[thread overview]
Message-ID: <31160cF373778U1@uni-berlin.de> (raw)
In-Reply-To: mailman.148.1101711116.10401.comp.lang.ada@ada-france.org

"Christoph Karl Walter Grein" <AdaMagica@web.de> schrieb im Newsbeitrag 
news:mailman.148.1101711116.10401.comp.lang.ada@ada-france.org...
>> State_Access := new Vessel_State_Type;
>> State_Access.All.Previous_State := Parent_State;
>> if State_Access /= null then
>
> this if statement comes too late:
> If State_Access = null, then the preceding assignment to 
> State_Access.All.Previous_State would raise an exception: 
> Constraint_Error, because the dereference State_Access.All is impossible.

This was just inserted for debugging reasons ... I wanted to check
whether State_Access was null because I couldn't believe what
was happening ;-)

Regards,
Florian Haag 





  reply	other threads:[~2004-11-29 17:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-29  6:51 Access1 := new Accessed_Type; Access1 = Access2 ...?! Christoph Karl Walter Grein
2004-11-29 17:54 ` Florian Haag [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-11-27 12:12 Florian Haag
2004-11-27 13:58 ` Jeff C r e e.m
2004-11-28  9:56   ` Florian Haag
2004-11-27 20:42 ` Jeffrey Carter
replies disabled

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