From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5ca3d5098e21bb51 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!k79g2000hse.googlegroups.com!not-for-mail From: Lucretia Newsgroups: comp.lang.ada Subject: Re: What are the limitations imposed by GNAT without runtime? Date: Wed, 10 Oct 2007 03:04:15 -0700 Organization: http://groups.google.com Message-ID: <1192010655.057857.9760@k79g2000hse.googlegroups.com> References: <1191947316.791605.8420@50g2000hsm.googlegroups.com> <3fROi.657455$p47.348852@bgtnsc04-news.ops.worldnet.att.net> NNTP-Posting-Host: 90.194.162.195 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1192010655 869 127.0.0.1 (10 Oct 2007 10:04:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 10 Oct 2007 10:04:15 +0000 (UTC) In-Reply-To: <3fROi.657455$p47.348852@bgtnsc04-news.ops.worldnet.att.net> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: k79g2000hse.googlegroups.com; posting-host=90.194.162.195; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2406 Date: 2007-10-10T03:04:15-07:00 List-Id: > 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.