comp.lang.ada
 help / color / mirror / Atom feed
From: "G.B." <bauhaus@futureapps.invalid>
Subject: Re: no code generation for c strings
Date: Fri, 3 Jun 2016 16:27:56 +0200
Date: 2016-06-03T16:27:56+02:00	[thread overview]
Message-ID: <nis45d$d51$1@dont-email.me> (raw)
In-Reply-To: <nirj5g$1jjd$1@gioia.aioe.org>

On 03.06.16 11:37, Dmitry A. Kazakov wrote:
> On 03/06/2016 11:23, Luke A. Guest wrote:
>> Dmitry A. Kazakov <mailbox@dmitry-kazakov.de> wrote:
>>
>>>> S : constant char_array := to_c ("hello" & nul);
>>>
>>> S : constant char_array := "hello" & char'val (0);
>>
>> Are you saying this will produce the desired code?
>
> In any case it should be better than calling a function, Ada still does
> not have compile-time ones.

If "&" will be become a function call, then

  S : constant char_array := ('h', 'e', 'l', 'l', 'o', nul);



  reply	other threads:[~2016-06-03 14:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-03  8:14 no code generation for c strings Luke A. Guest
2016-06-03  8:25 ` Dmitry A. Kazakov
2016-06-03  9:23   ` Luke A. Guest
2016-06-03  9:37     ` Dmitry A. Kazakov
2016-06-03 14:27       ` G.B. [this message]
2016-06-03 17:00         ` Lucretia
2016-06-04  6:31           ` Georg Bauhaus
2016-06-03 16:30   ` Simon Wright
2016-06-03 17:04     ` Lucretia
2016-06-03 18:45       ` Simon Wright
2016-06-03 20:30         ` Luke A. Guest
2016-06-03 21:25           ` Simon Wright
2016-06-03 21:33             ` Luke A. Guest
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox