Re: String filtering
- From: "Jeffrey R. Carter" <spam@xxxxxxxx>
- Date: Wed, 28 Sep 2005 18:21:11 GMT
David Trudgett wrote:
New_Str := To_Unbounded_String(Dest_Size);
Why not do this in the declaration of New_Str, and avoid the double initialization? In the rare (I presume) case where you will return a null string, this will initialize New_Str with a null string [Length (New_Str) = 0], and in all other cases, it avoids the double initialization. Not a big efficiency concern, but an aesthetic one.
-- Jeff Carter "You tiny-brained wipers of other people's bottoms!" Monty Python & the Holy Grail 18 .
- References:
- String filtering
- From: David Trudgett
- Re: String filtering
- From: David Trudgett
- Re: String filtering
- From: Martin Dowie
- Re: String filtering
- From: Martin Dowie
- Re: String filtering
- From: Dmitry A. Kazakov
- Re: String filtering
- From: Martin Dowie
- Re: String filtering
- From: Dmitry A. Kazakov
- Re: String filtering
- From: David Trudgett
- String filtering
- Prev by Date: Re: Code completion in ada IDE's
- Next by Date: Re: String filtering
- Previous by thread: Re: String filtering
- Next by thread: Re: String filtering
- Index(es):
Relevant Pages
|