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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7b69a8818c20ab9f X-Google-Attributes: gid103376,public From: Robert A Duff Subject: Re: Y21C Bug Date: 2000/01/11 Message-ID: #1/1 X-Deja-AN: 571238763 Sender: bobduff@world.std.com (Robert A Duff) References: <84nqbo$q28$1@nnrp1.deja.com> <84o0g2$u8v$1@nnrp1.deja.com> <84pvrs$7q1@ftp.kvaerner.com> <84sltt$7s3@ftp.kvaerner.com> <84t966$be0$1@nnrp1.deja.com> <84vev2$7p4@ftp.kvaerner.com> <38737352.B282CC2@easystreet.com> <851j2q$78q1@ftp.kvaerner.com> <852dt0$vdl$1@nnrp1.deja.com> <87iu16yxv4.fsf@deneb.cygnus.argh.org> <387B0AC9.AA4E090B@mail.com> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 2000-01-11T00:00:00+00:00 List-Id: Mats Weber writes: > Robert A Duff wrote: > > On the other hand, I once wrote something like: > > > > X: array(1..One_Zillion) of Integer := (others => 0); > > > > and the DEC Ada compiler blew up at compile time, apparently trying to > > be clever at run time. > > DEC Ada creates the allocator in the object file if everything is ^^^^^^^^^ > static. That's why you can't compile this. There's no allocator there -- it's just a package-level variable. I think on DEC Ada on VAX/VMS, the executable file would *not* contain all those zeros -- just an indication that the OS should create them as zero if and when necessary. (Assuming One_Zillion is made small enough that the compiler doesn't blow up.) - Bob