On Sunday, 29 December 2013 at 19:22:51 UTC, monarch_dodra wrote:
On Sunday, 29 December 2013 at 18:40:07 UTC, Maxim Fomin wrote:
Why this is a problem? You can create function which return
class field from struct wrapper and make such function alias
this, in addition postblit should allocate new class. The fact
that original struct may have null value is irrelevant if
copying is made correctly.
It's a problem for "reference semantic structs" that need to be
initialized. This is actually a "well know" and often
encountered problem.
Yes, I forgot about this sort of troubles.