Summary: Default struct constructors needed
--- Comment #0 from Max Samukha <samu...@voliacable.com> 2010-02-25 02:19:18
Qt has quite a lot of types with pass-by-value semantics. For example, all COW
types are value types
Currently, QtD implements such types as classes, which implies an excessive
heap allocation happens every time a value of such a type is passed to D.
We are trying to solve this problem by wrapping Qt's value types in D structs.
Those structs must always be properly initialized via a call to Qt. It would be
incorrect to just declare a variable like this:
We would have to force the programmer to explicitly run a function emulating
the default constructor (e.g. opCall), or expect him to suffer badly when he
forgets to do so.
1. Implement proper default constructors for structs.
2. Make it possible to forbid the use of uninitialized structs.
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------