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,3498dd887729ed19 X-Google-Attributes: gid103376,public From: kenner@lab.ultra.nyu.edu (Richard Kenner) Subject: Re: Garbage Collection in Ada Date: 1996/10/19 Message-ID: <54ak06$ms4@news.nyu.edu>#1/1 X-Deja-AN: 190574527 references: <19961016113936528855@dialup120-4-1.swipnet.se> organization: New York University Ultracomputer Research Lab newsgroups: comp.lang.ada Date: 1996-10-19T00:00:00+00:00 List-Id: In article bobduff@world.std.com (Robert A Duff) writes: >What does it mean to use virtual origins in C, given that all arrays >start at zero? The corresponding array on the Ada size *doesn't* start from zero, but instead some large positive number. We use the same index in C and Ada by subtracting the lower bound from a pointer to the array in C. This exactly corresponds to the use of virtual origins in C (and yes, it isn't a legal ANSI C program).