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,90108ed846e3f1bf X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!x13g2000yqf.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Why constructing functions is a mess [was Language lawyer question: task activation Date: Sat, 28 Feb 2009 15:12:17 -0800 (PST) Organization: http://groups.google.com Message-ID: <9a74a1ed-cb45-45f9-8e07-25c6340a22d8@x13g2000yqf.googlegroups.com> References: <1dusr7frk73m7.nlsagplge0hk.dlg@40tude.net> <09a7aab3-d105-4a40-b25b-e2824cb12f89@j1g2000yqi.googlegroups.com> <24bdd0df-9554-49de-9c5e-99572c9cdf34@g38g2000yqd.googlegroups.com> <1v0f2pkso7p50.vein84avao5t.dlg@40tude.net> <499ede41$0$32665$9b4e6d93@newsspool2.arcor-online.net> <1lhxmo6l2ypux.bei2ffp1m3e$.dlg@40tude.net> <499f2c59$0$31868$9b4e6d93@newsspool3.arcor-online.net> <1vcaimc8kjj30$.kf3rsd670ebp$.dlg@40tude.net> <1gxn72yzshp07$.6ytqydmmz37u.dlg@40tude.net> <49a92c29$0$32670$9b4e6d93@newsspool2.arcor-online.net> <1wzjy9pzbft1m.1lut7nszfkzmp$.dlg@40tude.net> NNTP-Posting-Host: 85.0.150.10 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1235862738 32006 127.0.0.1 (28 Feb 2009 23:12:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 28 Feb 2009 23:12:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x13g2000yqf.googlegroups.com; posting-host=85.0.150.10; 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.0.6) Gecko/2009011912 Firefox/3.0.6,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4829 Date: 2009-02-28T15:12:17-08:00 List-Id: On 28 Lut, 14:45, "Dmitry A. Kazakov" wrote: > > class T > > { > > public: > > =A0 virtual void op() =3D 0; > > private: > > =A0 T(char constraint) : c(constraint) {} > > =A0 char c; > > }; > > No, the constructor in the example must be public. It can be also *protected* (which in C++ means hidden from the world, but exposed to derived types) and I think this would better fit what you try to explain. -- Maciej Sobczak * www.msobczak.com * www.inspirel.com Database Access Library for Ada: www.inspirel.com/soci-ada