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,37b5f16b9be86fec X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: ada -> C translator Date: 1997/04/09 Message-ID: #1/1 X-Deja-AN: 231784911 References: <33436B29.41C6@sema-grenoble.fr> <5i243c$i1h@mulga.cs.mu.OZ.AU> <5i4jok$qiq@mulga.cs.mu.OZ.AU> <5i9r5t$nb6@mulga.cs.mu.OZ.AU> <5idcjq$8lh@mulga.cs.mu.OZ.AU> <5ifh5a$k5c@mulga.cs.mu.OZ.AU> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-04-09T00:00:00+00:00 List-Id: Fergus said <For example, what shall we do with exceptions in C? I implemented exceptions for Mercury without much difficulty; it took about a day. (The reason it was so easy was that the mechanism needed is similar to that needed for backtracking,>> You may remain unconvinced, but it just goes to show that you have not really looked at the detailed issues of implementing Ada this way. Obviously Mercury has *much* simpler compilation semantics than Ada if it can be handled in this way -- that's entirely possible certainly. Also, it becomes clear that what you have in mind for an Ada compiler written this way is more of a small subset Ada toy than a real compiler (it is out of the question for example, for a real Ada compiler, which must implement pragma Import and pragma Export properly to consider not using an invocation stack). I think you are trying to solve a much simpler problem with Mercury (certainly sounds much simpler from all your descriptions), and you assume that this experience can be projected on to Ada, it cannot!