Tuple assignment

Russel Winder via Digitalmars-d digitalmars-d at puremagic.com
Sun May 10 02:21:51 PDT 2015


On Sun, 2015-05-10 at 08:47 +0000, Oren Tirosh via Digitalmars-d wrote:
> 
[…]
> > >      tuple(current, next) = tuple(next , current +next);
> > 
[…]
> Works for me. If this is version or compiler dependent this 
> definitely needs investigation.

It does not for me using rdmd 2.067. My implementation of nth
Fibonacci Number leads to success for my version but not for yours.
Maybe we should exchange codes offlist?
 
-- 
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/20150510/2a6cc7b4/attachment-0001.sig>


More information about the Digitalmars-d mailing list