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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,85c4b961f840b5ab X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Vinzent 'Gadget' Hoefler Newsgroups: comp.lang.ada Subject: Re: Zero length Objects Date: Fri, 02 Jul 2004 21:01:07 +0200 Organization: JeLlyFish software Message-ID: References: <2oUEc.2$S77.1@nwrdny03.gnilink.net> <2kimpdF2orakU1@uni-berlin.de> <1088697459.558708@master.nyc.kbcfp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de xSUzTZJMc+QVZmUoKPsd5AaCXeDQpmJe4yeQ7+xJkQvYK1rF82 X-Newsreader: Forte Agent 1.8/32.548 Xref: g2news1.google.com comp.lang.ada:2053 Date: 2004-07-02T21:01:07+02:00 List-Id: =46rank J. Lhota wrote: >If objects with negative storage size were supported, then I could = declare > > Slack : String ( 1 .. -2_147_483_645 ); > >and get a big increase in available memory :) There's an easier way which is already supported: One : String (1 .. 100_000); Two : String (1 .. 100_000); for Two'Address use One'Address; And you've just halved your memory requirements. Vin"Bye folks, and watch out for another lesson of 'How to shoot you in the foot with Ada' next week in you favourite usenet channel."zent.