On 06/20/14 14:42, Dicebot via Digitalmars-d-learn wrote:
> On Friday, 20 June 2014 at 12:17:22 UTC, Johann Lermer wrote:
>> So, why is there no init routine for the rectangle? There's only one for the 
>> matrix.
> 
> That needs actually building deimos cairo and checking symbols in object 
> files so I will do as soon as have a bit more spare time ;)

If i were to guess: the compiler optimizes the init-blitting into
a memset(-equivalent) when all the members are default initted to
zero; D's doubles are initialized to NaN, so this optimization is
not happening when a struct contains such fields.

artur

Reply via email to