Re: New to Ada, noticing something strange.
- From: Georg Bauhaus <bauhaus@xxxxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 12:19:34 +0200
mike.martelli@xxxxxxxxx wrote:
Ok, Randy sounds good here is my code. I also tried compiling in on Laptop with the latest GNAT compilier and I get the same results.
And as Randy said, the issue is with code that didn't look suspicious. IIUC.
function Convert2Character(strChar: String) return Character is....
case Integer'Value(strChar) is....
when others => return strChar(1);....
charDigit := Convert2Character(Integer'Image(charMap(charOp1) + charMap(charOp2) + carry));
Here, the 'Image has a space for non-negative value (or a minus sign for negative values) in position 1.
-- Georg .
- Follow-Ups:
- Re: New to Ada, noticing something strange.
- From: mike . martelli
- Re: New to Ada, noticing something strange.
- References:
- New to Ada, noticing something strange.
- From: mike . martelli
- Re: New to Ada, noticing something strange.
- From: Jeffrey R. Carter
- Re: New to Ada, noticing something strange.
- From: mike . martelli
- Re: New to Ada, noticing something strange.
- From: mike . martelli
- New to Ada, noticing something strange.
- Prev by Date: Re: Code completion in ada IDE's
- Next by Date: Re: GNAT GPL - Anonymous Access Type
- Previous by thread: Re: New to Ada, noticing something strange.
- Next by thread: Re: New to Ada, noticing something strange.
- Index(es):