* Setting to empty string.
@ 1992-04-22 23:29 micro-heart-of-gold.mit.edu!news.bbn.com!usc!hacgate!ddemo3!hayes
0 siblings, 0 replies; only message in thread
From: micro-heart-of-gold.mit.edu!news.bbn.com!usc!hacgate!ddemo3!hayes @ 1992-04-22 23:29 UTC (permalink / raw)
Yes, I'm a beginner.
I want to be able to set a string variable to the empty string.
I was under the impression that Ada could do this in a single
assignment like
str := "";
But, from my test cases, I see that this won't work due to
CONSTRAINT_ERROR. Am I attempting the impossible? Must I use
a string copy procedure???
my test example:
procedure test is
str: string (1..100);
begin
str := "";
end test;
--
*** Brian Hayes hayes@hac2arpa (310) 616-5129 ***
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1992-04-22 23:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-04-22 23:29 Setting to empty string micro-heart-of-gold.mit.edu!news.bbn.com!usc!hacgate!ddemo3!hayes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox