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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e94a7e4f6f888766 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Self-referential types Date: 1999/10/18 Message-ID: <7udsva$m0t$1@nnrp1.deja.com>#1/1 X-Deja-AN: 537271184 References: <7ttb4a$8mq$1@nnrp1.deja.com> <3802f2db_2@news1.prserv.net> <3803B5E3.F96A6DD4@mitre.org> <3803c8bc_2@news1.prserv.net> <3804E7E0.6A0265FB@mitre.org> <38077EB3.E6911567@mitre.org> <38078775.73450564@pwfl.com> <38079D6F.4F7C00FA@mitre.org> X-Http-Proxy: 1.0 x23.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Oct 18 01:26:09 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-10-18T00:00:00+00:00 List-Id: In article <38079D6F.4F7C00FA@mitre.org>, "Robert I. Eachus" wrote: > But this is the wrong way to do that in Ada. There are two similar > cases and several structurally different ways to organize them. First > if there is no shared local data common to all of the subprograms, or if > tasking is not an issue, you can put the local data in a ^^^^^^^^^^^^^^^^^^^^^^^ Ah ha! There it is. The trouble is that the creator may not think tasking is an issue, but later on a consumer is interested in task safety. PLEASE PLEASE default your thinking to assume that tasking *is* an issue, and make thinks task safe by default. Only introduce (well documented!) thread non-safety deliberately if there is a VERY good reason for it. package body. > The package exports the subprograms, and the driver just contains a few > calls and perhaps some logic: Sent via Deja.com http://www.deja.com/ Before you buy.