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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada platforms and pricing, was: Re: a new language, designed for safety ! Date: Tue, 24 Jun 2014 11:24:03 +0100 Organization: A noiseless patient Spider Message-ID: References: <255b51cd-b23f-4413-805a-9fea3c70d8b2@googlegroups.com> <5ebe316d-cd84-40fb-a983-9f953f205fef@googlegroups.com> <2100734262424129975.133931laguest-archeia.com@nntp.aioe.org> <5156oy7vhg99.17wu6q2ef45ke.dlg@40tude.net> <18et97c0c22vc$.y98lxxfblijn.dlg@40tude.net> <08f83f70-ccb1-45ec-8a4c-46e3442745b8@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="117da9042fa4d6f5956a9b8f72035635"; logging-data="13873"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190IsMiZW46hIpFbaWIEOZXnLwTvzqbfaw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:Vru8/wEdomjLo/tcWWPfJCNUM14= sha1:bP4I2NCIitWNppFnuQNWmBiImyg= Xref: news.eternal-september.org comp.lang.ada:20578 Date: 2014-06-24T11:24:03+01:00 List-Id: Shark8 writes: > On 23-Jun-14 13:21, Dan'l Miller wrote: >> In the spirit of lambasting the lack of direct representation >> of finite-state machines (FSMs) in Ada: > > Wtf, there's a direct representation for state-machines: > > Type State is ([...]); > Type Event is ([...]); > > -- Here it is! > FSM : Array(State, Event) of State:= ([...]); > > ...and that's Ada-83. You'd need the Action (access procedure (...)) to be executed on the transition, too.