to!() conversion between objects

Robert Jacques sandford at jhu.edu
Wed Oct 19 19:46:19 PDT 2011


On Wed, 19 Oct 2011 14:31:20 -0400, Piotr Szturmaj <bncrbme at jadamspam.pl> wrote:
>> Piotr Szturmaj:
>>
>>> I have written a simple conversion template for tuples, structs and classes:
>
> This is only the part to complement universal range/array to
> tuple/struct/class conversion. It may be useful in mapping runtime
> fields like database rows or CSV lines onto objects. I think Phobos
> needs a common solution for that.
>

My proposed improvement to std.variant handles duck-typing style conversions between values.


More information about the Digitalmars-d mailing list