Good examples of value types

Russel Winder via Digitalmars-d digitalmars-d at puremagic.com
Thu May 7 12:29:26 PDT 2015


On Thu, 2015-05-07 at 07:36 -0700, Andrei Alexandrescu via Digitalmars-d
wrote:
[…]
> 
> Reference types don't compose nicely that way. In a language with valye 
> types, the juxtaposition of two items (value or reference) is a va;ue. 
> In Java, it's a reference (so you need to allocate a new object etc.)

But that object is likely very short lived, and (especially with the G1
GC), handled very efficiently. But as ever, without benchmarks and
actual data there are no facts, only opinions.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150507/2c1e8dfe/attachment.sig>


More information about the Digitalmars-d mailing list