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,a0833bbed8752e1f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!wns13feed!worldnet.att.net!204.71.34.3!newsfeed.cwix.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: variable length strings Date: 27 Oct 2004 06:50:51 -0500 Organization: Berbee Information Networks Corporation Message-ID: References: <1861614.TWv5A9FgVL@linux1.krischik.com> <4178e979_1@baen1673807.greenlnk.net> <1195374.UMjBCk7lO1@linux1.krischik.com> <1154613.ipZcUgduzp@linux1.krischik.com> <1174011.lJ1dcgRM3Q@linux1.krischik.com> <1098814048.280053@master.nyc.kbcfp.com> In article , Pascal Obry writes: > > Jacob Sparre Andersen writes: > >> And will continuous appending to an Unbounded_String not give the same >> risks? > > Probably but a program has certainly lot more heap space than stack space. Your "certainly" is misplaced since you do not restrict your claim to a particular environment or program. On VMS (even VAX) the stack space for the main DEC Ada task is limited to roughly 1 Gigabyte (minus some overhead). The heap space is limited to the same size, minus the size of the program. As programs get larger the availability of stack space over heap space grows.