comp.lang.ada
 help / color / mirror / Atom feed
* What is more efficient: a container or a manual programming?
@ 2014-08-09 17:42 Victor Porton
  2014-08-09 18:03 ` Victor Porton
  0 siblings, 1 reply; 3+ messages in thread
From: Victor Porton @ 2014-08-09 17:42 UTC (permalink / raw)


What is more efficient: Rec or Cont?

type Rec new Limited_Controlled with
   record
      Str: access String;
   end record;

--
-- Code to automatically deallocate Str when Rec is finalized
--

or

type Cont is new (String);

(Note: in the real code it may be Interfaces.C.char_array instead of 
String.)

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


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

end of thread, other threads:[~2014-08-09 19:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-09 17:42 What is more efficient: a container or a manual programming? Victor Porton
2014-08-09 18:03 ` Victor Porton
2014-08-09 19:46   ` Jeffrey Carter

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