From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: warning: cannot return a local value by reference
Date: Thu, 03 Jun 2004 10:23:28 +0200
Date: 2004-06-03T10:23:28+02:00 [thread overview]
Message-ID: <3595768.JMpgFWyRs6@linux1.krischik.com> (raw)
In-Reply-To: 40be5080$0$9181$626a14ce@news.free.fr
k_leau wrote:
> Hello,
>
> I am new to Ada programming and I have the following problem:
>
> I am using the APQ binding for working with Postgresql.
>
> I have created the following spec "item_dbm_cls.ads" with the following:
>
> with item_cls, apq.postgresql.client;
> use item_cls, apq, apq.postgresql, apq.postgresql.client;
>
> package item_dbm_cls is
> type item_dbm is limited private;
> function new_item_dbm(it_dbm: item_dbm) return item_dbm;
>
> private
> type item_dbm is record
> it: item;
> connection: connection_type;
> end record;
>
> end item_dbm_cls;
In addition to the other answer (the one suggesting a procedure) let me ask
you a question:
The full private view of item_dbm is non limited so why did you make the
partial public view limited?
With Regards
Martin
--
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com
next prev parent reply other threads:[~2004-06-03 8:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-02 22:11 warning: cannot return a local value by reference k_leau
2004-06-02 22:36 ` Georg Bauhaus
2004-06-02 22:49 ` k_leau
2004-06-03 8:23 ` Martin Krischik [this message]
2004-06-03 10:02 ` k_leau
2004-06-03 10:37 ` Martin Krischik
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox