From: Victor Porton <porton@narod.ru>
Subject: What is more efficient: a container or a manual programming?
Date: Sat, 09 Aug 2014 20:42:11 +0300
Date: 2014-08-09T20:42:11+03:00 [thread overview]
Message-ID: <ls5mhg$mib$1@speranza.aioe.org> (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
next reply other threads:[~2014-08-09 17:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-09 17:42 Victor Porton [this message]
2014-08-09 18:03 ` What is more efficient: a container or a manual programming? Victor Porton
2014-08-09 19:46 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox