http://d.puremagic.com/issues/show_bug.cgi?id=5013


Jakob Ovrum <jakobov...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakobov...@gmail.com


--- Comment #2 from Jakob Ovrum <jakobov...@gmail.com> 2012-04-22 09:14:47 PDT 
---
(In reply to comment #1)
> (In reply to comment #0)
> 
> > This leaves the reverse conversion unimplementable. A way out can be:
> > 
> > Tuple!(int, int) t;
> > auto ints = to!(int[2])(t);
> 
> Or:
> 
> auto ints = cast(int[2]) t;
> 
> Seems more appropriate as no conversion takes place.

Structs can have padding, while static arrays cannot.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to