comp.lang.ada
 help / color / mirror / Atom feed
From: Rex Reges <73653.1634@CompuServe.COM>
Subject: Re: Form feed comment for pragma Page
Date: 1996/06/12
Date: 1996-06-12T00:00:00+00:00	[thread overview]
Message-ID: <4pl7j0$1mc$2@mhafn.production.compuserve.com> (raw)
In-Reply-To: 4pl5t9$1mc$1@mhafn.production.compuserve.com


I was cut off! Sorry about that. As I was saying...

One should not put a null character in a comment since the Unix 
debuggers tend to stop printing when they encounter a null.
For example, when I examine strings while debugging, I have found 
that the full string will not be printed if a null is embedded:

    Example : Strin(1..7) ;
    Example := "ABC" & Character'Val(000) & "DEF" ;

Examinging Example will result in:
 
    Example = "ABC"

In addition, useful tools like Vax's CMS won't accept some control 
characters inthe source code (at least the old versionI am using).  

Therefore, my recommendation is to stick to the visible character 
set including foreign characters which AI-00339 was actually aimed 
at. Also, when debugging, examine strings in hex first to see if any
nulls are lurking about.

-- 
or you can call me The Fixer...
or you can e-mail me at RegesR@pgate.he.boeing.com




  reply	other threads:[~1996-06-12  0:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-04  0:00 Form feed comment for pragma Page Rex Reges
1996-06-03  0:00 ` Robert Dewar
1996-06-06  0:00   ` Rex Reges
1996-06-05  0:00     ` Robert Dewar
1996-06-12  0:00       ` Rex Reges
1996-06-12  0:00         ` Rex Reges [this message]
1996-06-12  0:00           ` Robert Dewar
1996-06-13  0:00           ` Ken Garlington
1996-06-03  0:00 ` Robert Dewar
1996-06-04  0:00   ` Arthur Evans Jr
1996-06-04  0:00     ` Robert Dewar
1996-06-06  0:00       ` Text_IO and Ada source (was: Form feed comment for pragma Page) Arthur Evans Jr
1996-06-06  0:00         ` Robert Dewar
1996-06-11  0:00           ` Norman H. Cohen
1996-06-12  0:00             ` Robert Dewar
1996-06-18  0:00           ` Norman H. Cohen
1996-06-20  0:00             ` Robert Dewar
1996-06-05  0:00     ` Form feed comment for pragma Page Keith Thompson
1996-06-04  0:00   ` Robert A Duff
1996-06-04  0:00     ` Robert Dewar
replies disabled

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