comp.lang.ada
 help / color / mirror / Atom feed
* Returning a limited object as a class-wide value
@ 2017-11-29  2:05 Victor Porton
  2017-11-29  9:00 ` Dmitry A. Kazakov
  2017-11-29 20:51 ` Randy Brukardt
  0 siblings, 2 replies; 3+ messages in thread
From: Victor Porton @ 2017-11-29  2:05 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-29 20:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-29  2:05 Returning a limited object as a class-wide value Victor Porton
2017-11-29  9:00 ` Dmitry A. Kazakov
2017-11-29 20:51 ` Randy Brukardt

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