<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 2/18/2013 12:59 PM, Maxim Fomin
wrote:<br>
</div>
<blockquote
cite="mid:CAHFj7Gdkh7DS3PdCmT2OVLrrQVaG3U=MgJbRGz4rn2Jb6qbcFQ@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">2013/2/18 Walter Bright <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:walter@digitalmars.com"
target="_blank">walter@digitalmars.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 2/17/2013 1:59 PM, Iain Buclaw wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
By the way Johannes, the issue is clear I think. You
can't make temporaries with non-POD structs? This is
something gdc is a bit zealous in doing this around a lot
of the code generation. So addressing that would
certainly fix problems around the<br>
<br>
</blockquote>
<br>
</div>
Whenever you make a copy of a non-POD value, you have to (for
example) build an exception handling frame to destruct it if,
in the meantime, an exception is thrown. This is not only
expensive, but it doesn't work if the value lives in
registers.
<div class="HOEnZb">
<div class="h5"><br>
</div>
</div>
</blockquote>
</div>
<br>
What a coincidence. I hit today issue <a moz-do-not-send="true"
href="http://d.puremagic.com/issues/show_bug.cgi?id=8563">http://d.puremagic.com/issues/show_bug.cgi?id=8563</a>
Are you implying that temporaries of POD structures are
impossible?<br>
</blockquote>
<br>
No. I'm asserting that non-POD values:<br>
<br>
1. cannot be put in registers<br>
<br>
2. are expensive to make temporaries of, because all the exception
safety stuff has to be added<br>
<br>
</body>
</html>