On Saturday, 13 July 2013 at 16:19:06 UTC, Benjamin Thaut wrote:
Yes this looks pretty similar to scoped in phobos but I always thought that scoped was inteded for objects to be placed on the stack instead of inside other objects. Thats also why scoped does some additional alignment which is garantueed when you do it within a class.

The alignment is guaranteed only for enclosing class, not for the composite struct. Though in case on embedding it's enough to add align(16), I suppose.

Reply via email to