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.42.85.142 with SMTP id q14mr9072618icl.16.1406768200219; Wed, 30 Jul 2014 17:56:40 -0700 (PDT) X-Received: by 10.182.126.37 with SMTP id mv5mr872obb.33.1406768200067; Wed, 30 Jul 2014 17:56:40 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!h18no10885172igc.0!news-out.google.com!px9ni1igc.0!nntp.google.com!h18no6749263igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 30 Jul 2014 17:56:39 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=73.179.102.101; posting-account=wEPvUgoAAABrLeiz_LRhQ3jeEhyfWVMH NNTP-Posting-Host: 73.179.102.101 References: <166aaec5-5e9c-40e0-9b07-9b9c7d5f7f33@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <729fc5e9-760c-463a-aceb-bfe2c4f4d184@googlegroups.com> Subject: Re: Quick question regarding limited type return syntax From: NiGHTS Injection-Date: Thu, 31 Jul 2014 00:56:40 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:21361 Date: 2014-07-30T17:56:39-07:00 List-Id: On Wednesday, July 30, 2014 8:02:59 PM UTC-4, Adam Beneschan wrote: > > What is a PQ.Database? > The complete name is GNATCOLL.SQL.Postgres.Gnade.Database. Its from the GNATColl library. https://github.com/ThomasLocke/GNATColl/blob/master/src/postgres/with_postgres/gnatcoll-sql-postgres-gnade.ads > > > I've tried this with various dummy types for the Database, and when I get a warning it's that the object is "read but never assigned". Is that the warning you're getting? That's different from a warning that says it's never used. > I'm sorry about that. You are right. That is the warning I am getting. > > It appears to me that if this field were assigned in New_Object, or if Database had an initial value in the record or if all components of Database had initial values, you wouldn't get the warning. > > The initial value is given during the return. It won't let me give it an initial value at the record definition (unless I am doing it wrong). Can you give me an example?