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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c08a7609345f4e5 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news1.google.com!postnews.google.com!26g2000yqv.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Limited use for limited with? Date: Fri, 8 Oct 2010 01:23:18 -0700 (PDT) Organization: http://groups.google.com Message-ID: <09c36bd6-edfa-42bf-8f33-e91b0a9b0737@26g2000yqv.googlegroups.com> References: <853314bc-0f79-435f-86a5-d7bcdd610731@c10g2000yqh.googlegroups.com> <36e886fa-b272-461f-bf86-a6b18366b64f@i5g2000yqe.googlegroups.com> <1eug9v5h5mf8d$.ud00hrz48lyr.dlg@40tude.net> <67044906-dacc-4526-b3f6-27e5323ab8fc@n3g2000yqb.googlegroups.com> <12chb4kbqt9ln$.zumsv1z9hqvk$.dlg@40tude.net> <292dd0bd-1fc4-4715-bb70-7655d0dc04eb@j24g2000yqa.googlegroups.com> NNTP-Posting-Host: 77.254.189.90 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1286565383 23059 127.0.0.1 (8 Oct 2010 19:16:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 8 Oct 2010 19:16:23 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 26g2000yqv.googlegroups.com; posting-host=77.254.189.90; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:14448 Date: 2010-10-08T01:23:18-07:00 List-Id: On 5 Pa=C5=BA, 09:25, "Randy Brukardt" wrote: > >No way. There are *many* Registers, meaning that a single object can > >be registered in several registries, not just one. Will you suggest > >passing an array of registries to the constructor? I hope not. > > This sounds like chaos, not a design. Let me guess: comp.lang.ada is the only group you are registered to, right? And of course, you are subscribed to only one mailing list, right? The possibility to register somewhere should be orthogonal to the number of registries. If I was able to subscribe to comp.lang.ada, I want to be able to subscribe to several other groups, too. It's not a chaos, it's an obvious result of decoupling. > >The problem with your approach is that it tries to bend the design of > >the system in order to work around some language limitation. I prefer > >having it the other way round. > > The "design" sounds more like copying bad ideas from some other > implementation for some other programming language. This design does not contain any elements that would be particular to "some other programming language", or at least you have not shown it yet. Access values are inherent part of Ada and for example Timing Events (D.15) are nothing else but callback registries, so I don't think I'm doing anything extraordinary or outside of the "Ada way". In other words, "chaos" and "bad ideas" are not appropriate words here. > When you start with a poor design, it's not surprising you can only find > poor solutions... Translation: "I don't understand the purpose of the system, but the fact that my proposed solutions are not adequate is a sure proof that the original design must be broken." Is that right? -- Maciej Sobczak * http://www.inspirel.com