From: Lucretia <lucretia9@lycos.co.uk>
Subject: Re: What are the limitations imposed by GNAT without runtime?
Date: Wed, 10 Oct 2007 03:04:15 -0700
Date: 2007-10-10T03:04:15-07:00 [thread overview]
Message-ID: <1192010655.057857.9760@k79g2000hse.googlegroups.com> (raw)
In-Reply-To: <3fROi.657455$p47.348852@bgtnsc04-news.ops.worldnet.att.net>
> procedure Kernel is
>
> type Wah is ( One, Two ) ;
>
> -- ------------------------------------------------ --
> -- Simple function replaces the Image attribute for --
> -- Wah type --
> -- ------------------------------------------------ --
> function Image_Wah ( V : Wah ) return String is
>
> begin -- Image_Wah
>
> if V = One then
> return "One" ;
> else
> return "Two" ;
> end if ;
>
> end Image_Wah ;
This isn't much of an option as the compiler already creates the
strings for these in the data section. I'm not sure if these 2 other
strings would be created again or not.
Luke.
next prev parent reply other threads:[~2007-10-10 10:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-09 16:28 What are the limitations imposed by GNAT without runtime? Lucretia
2007-10-09 20:10 ` anon
2007-10-10 4:39 ` Simon Wright
2007-10-10 10:07 ` Lucretia
2007-10-10 10:04 ` Lucretia [this message]
2007-10-10 17:51 ` anon
2007-10-10 19:00 ` Lucretia
2007-10-10 19:24 ` Lucretia
2007-10-11 3:05 ` anon
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox