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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!JPL-VLSI.ARPA!larry From: larry@JPL-VLSI.ARPA Newsgroups: net.lang.ada Subject: ForTran-Ada + flamette + question Message-ID: <8605210805.AA20308@ucbvax.Berkeley.EDU> Date: Wed, 21-May-86 02:06:55 EDT Article-I.D.: ucbvax.8605210805.AA20308 Posted: Wed May 21 02:06:55 1986 Date-Received: Fri, 23-May-86 06:40:24 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet List-Id: > I for one am getting a little tired of short, nasty, replies from > "real-annoyed-sender"s who pull the reply trigger before they stop.... Me too. The biggest difference is that you can use subprogram names as parameters to subprograms in ForTran and you can't in Ada. This is causing me major problems in porting EMACS (written in C) to Ada. An important feature of EMACS is the ability to do run-time rebinding of functions to key-strokes and I haven't figured out how to do this in Ada. In C one can build an array of records, each record containing a pointer to a function and the string of characters used to invoke the function. When that string is intercepted from the keyboard, the matching function is invoked. With this to build on it's fairly easy to create a macro facility, and even a subset programming language so that users can extend the editor command set. Anyone have an idea how to do run-time binding of keys to commands in Ada? Larry @ jpl-vlsi.arpa