Multiple return value as requirements for safety and performance

Ilya Yaroshenko via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 20 08:18:58 PST 2016


On Tuesday, 20 December 2016 at 16:06:49 UTC, Ilya Yaroshenko 
wrote:
> On Tuesday, 20 December 2016 at 15:50:03 UTC, Nordlöw wrote:
>> On Tuesday, 20 December 2016 at 15:42:52 UTC, Ilya Yaroshenko 
>> wrote:
>>> This thread is about mutiple values returned by _reference_. 
>>> Tuples can not do it, only pointers, but they are not 
>>> ctfeable and safe
>>
>> Do pointers worsen performance aswell? Even when using LDC?
>
> Tuples of pointers are faster then tuples of values. 
> Hypothetical tuples of references have the same performance as 
> tuples of references.

EDIT: as tuples of pointers.


More information about the Digitalmars-d mailing list