From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 22 Apr 92 23:29:19 GMT From: micro-heart-of-gold.mit.edu!news.bbn.com!usc!hacgate!ddemo3!hayes@bloom-b eacon.mit.edu Subject: Setting to empty string. Message-ID: <21346@hacgate.UUCP> List-Id: 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 ***