comp.lang.ada
 help / color / mirror / Atom feed
From: Victor Porton <porton@narod.ru>
Subject: Returning a limited object as a class-wide value
Date: Wed, 29 Nov 2017 04:05:51 +0200
Date: 2017-11-29T04:05:51+02:00	[thread overview]
Message-ID: <ovl4m6$k5s$1@gioia.aioe.org> (raw)

Let T be a limited tagged type.

I want to define a function F which returns T'Class.

Please show me an example.

I try:

return X: T'Class := T'(others => <>) do
   --- ...
end return;

Right way?

-- 
Victor Porton - http://portonvictor.org


             reply	other threads:[~2017-11-29  2:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-29  2:05 Victor Porton [this message]
2017-11-29  9:00 ` Returning a limited object as a class-wide value Dmitry A. Kazakov
2017-11-29 20:51 ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox