From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Troubles with C strings
Date: Sat, 26 Jul 2014 21:41:39 +0300
Date: 2014-07-26T21:41:39+03:00 [thread overview]
Message-ID: <c3ib33Fsi15U1@mid.individual.net> (raw)
In-Reply-To: <lr0d39$3gb$1@speranza.aioe.org>
On 14-07-26 17:13 , Victor Porton wrote:
> RM2012 B.3.1:
>
> 39 function Value (Item : in chars_ptr; Length : in size_t)
> return String;
> 40/1 Equivalent to To_Ada(Value(Item, Length) & nul, Trim_Nul=>True).
>
> Isn't the function Value improperly recursively defined through itself?!
No, the definition uses another Value function.
> Please explain.
The call in 40/1 uses
function Value (Item : in chars_ptr; Length : in size_t)
return char_array;
from RM B.3.1(35), followed by
function To_Ada (Item : in char_array;
Trim_Nul : in Boolean := True)
return String;
from RM B.3(26).
--
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
. @ .
prev parent reply other threads:[~2014-07-26 18:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-26 14:13 Troubles with C strings Victor Porton
2014-07-26 15:15 ` Shark8
2014-07-26 15:52 ` Victor Porton
2014-07-26 17:09 ` Shark8
2014-07-26 19:06 ` Peter Chapin
2014-07-26 19:09 ` Victor Porton
2014-08-01 22:16 ` Victor Porton
2014-07-26 18:41 ` Niklas Holsti [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