comp.lang.ada
 help / color / mirror / Atom feed
From: micro-heart-of-gold.mit.edu!news.bbn.com!usc!hacgate!ddemo3!hayes@bloom-b
Subject: Setting to empty string.
Date: 22 Apr 92 23:29:19 GMT	[thread overview]
Message-ID: <21346@hacgate.UUCP> (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 ***

                 reply	other threads:[~1992-04-22 23:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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