comp.lang.ada
 help / color / mirror / Atom feed
* simple question just to be sure
@ 2001-10-10  8:25 Rammeloo Stijn
  2001-10-10 13:32 ` Ted Dennison
  2001-10-10 16:35 ` Jeffrey Carter
  0 siblings, 2 replies; 4+ messages in thread
From: Rammeloo Stijn @ 2001-10-10  8:25 UTC (permalink / raw)


Hello,

According to me the following constructs are equivalent and are both
perfectly legal ada in ada83 and ada95:

    Bad_Frame_Name : constant String (1 .. 4) := "Bad" & Ascii.Nul;

   A_Nul : constant Character:=  Ascii.Nul;
   Bad_Frame_Name : constant String (1 .. 4) := "Bad" & A_Nul;

Why do I ask? We use a code analyses tool that stumbles over the first
construct with the error message "Bad_Frame_Name Value length 5 does not
match object length 4" but not over the second one. According to me this is
clearly a bug in the code analyses tool. According to the vendor, this 'odd'
behaviour would be caused by the fact that the first construct 'May not be
"perfect" Ada' but the second is. I totaly disagree with this statement. Can
some ada-guru out there confirm I'm right or, if not, why I'm wrong?

Thanks in foresee,
Stijn





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-10-13 23:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-10  8:25 simple question just to be sure Rammeloo Stijn
2001-10-10 13:32 ` Ted Dennison
2001-10-13 23:40   ` R. Tim Coslet
2001-10-10 16:35 ` Jeffrey Carter

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