From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: Integer to String
Date: Thu, 29 Jan 2015 12:39:23 -0800 (PST)
Date: 2015-01-29T12:39:23-08:00 [thread overview]
Message-ID: <231f7ed9-3c99-4280-97d7-b60943ecb5ac@googlegroups.com> (raw)
In-Reply-To: <YtednSPAs64J8lfJnZ2dnUU7-ImdnZ2d@giganews.com>
On Thursday, January 29, 2015 at 9:36:21 AM UTC-8, montgrimpulo wrote:
> -- ...
> New_Line(2);Put("num= ");Put(num);
> (20) str:=Integer'Image(num);
> New_Line;Put("str= ");Put(str);
> end ItoS;
(20) should not be here. Otherwise, syntax violation is resulted. It must be cut and paste error.
> However, the outcome is :
> num = 7
> char=
The 7th character (BEL) is a controlled character. Thus, nothing is printed.
> num= 123456
>
> raised CONSTRAINT_ERROR : itos.adb:20 length check failed.
Others have already explained this exception.
Anh Vo
prev parent reply other threads:[~2015-01-29 20:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-29 17:36 Integer to String montgrimpulo
2015-01-29 17:51 ` Simon Wright
2015-01-29 19:16 ` Jeffrey Carter
2015-01-29 20:39 ` Anh Vo [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox