Multiple return values...

F i L witte2008 at gmail.com
Sat Mar 10 18:54:33 PST 2012


Lot of cool discussions going on right now with UFCS and language 
Tuples. I don't know if it's been said before, but one thing I'd 
really like with Tuples syntax is the ability to access multiple 
members the same way. Plus it could be nice to be able to define 
multiple function parameters the same way. eg:

     class Actor
     {
         string name;
         float x, y, z;

         this(string name, float (x, y, z))
         {
             this.name = name;
             this.(x, y, z) = (x, y, z);
         }
     }



More information about the Digitalmars-d mailing list