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 X-Received: by 10.52.36.197 with SMTP id s5mr2006885vdj.5.1411507622301; Tue, 23 Sep 2014 14:27:02 -0700 (PDT) X-Received: by 10.182.24.69 with SMTP id s5mr27849obf.16.1411507622139; Tue, 23 Sep 2014 14:27:02 -0700 (PDT) Path: buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!s7no113146qap.1!news-out.google.com!rp1ni1450igb.0!nntp.google.com!a13no2384757igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 23 Sep 2014 14:27:01 -0700 (PDT) In-Reply-To: <1ow7xs34a7j7z.1f0806cgaoh7r$.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.176.73.77; posting-account=yiWntAoAAAC1KqC_shmxJYv07B9l6LNU NNTP-Posting-Host: 66.176.73.77 References: <4b9c517f-9c78-44f5-bda1-8e7647f06851@googlegroups.com> <14aahny7n1xxq.12aqg1nr0sro0$.dlg@40tude.net> <4a7d6542-d4c1-4d79-8def-d4b74e06dacd@googlegroups.com> <1ow7xs34a7j7z.1f0806cgaoh7r$.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2bfcf64f-0e19-4cf5-96df-14a360d2cb05@googlegroups.com> Subject: Re: Using Class wide types as factories, is this legit? From: David Botton Injection-Date: Tue, 23 Sep 2014 21:27:02 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.dca.giganews.com comp.lang.ada:189114 Date: 2014-09-23T14:27:01-07:00 List-Id: > Regarding your design. The rule of thumb is that controlled and other > > copyable objects shall not have access discriminants. rule of thumb? what would be your reasons to disallow? I find creative uses for that as you can see. I'll see if I can create a small reproducer first since if I can't then I know for sure is some place deeper in my code as you point out and which I've seen the case before. David Botton