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!mx05.eternal-september.org!feeder.eternal-september.org!xmission!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Seeking for papers about tagged types vs access to subprograms Date: Mon, 13 May 2013 09:15:34 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1bfhq7jo34xpi.p8n2vq6yjsea.dlg@40tude.net> <12gn9wvv1gwfk.10ikfju4rzmnj.dlg@40tude.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: pcls6.std.com 1368450935 17764 192.74.137.71 (13 May 2013 13:15:35 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 13 May 2013 13:15:35 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:H2jdB14Zo8PY/4Hraw2sJeuVItg= Xref: news.eternal-september.org comp.lang.ada:15537 Date: 2013-05-13T09:15:34-04:00 List-Id: "Yannick Duchêne (Hibou57)" writes: > As said Niklas, the initial idea was requirements on the state of > objects for some operation to occur or not occur. Yes, I understood that. I just don't think "open/closed file" is the best example. Maybe something like, you can't do the "land aircraft" operation unless you're in the "landing gear down" state. By the way, Text_IO has more design flaws than I can count without taking off my shoes. ;-) - Bob