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.win...@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part