<div>Robert, </div><div><br></div><div>This stub shows the issue:</div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><font class="Apple-style-span" face="'courier new', monospace">import std.stdio;</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">import std.range;</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">void main(string[] args)</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">  {</font></div><div><font class="Apple-style-span" face="'courier new', monospace">    string id = "somestring";</font></div><div>
<font class="Apple-style-span" face="'courier new', monospace">    auto rid = retro(id);</font></div><div><font class="Apple-style-span" face="'courier new', monospace">    writeln(rid.length);</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">  }</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><div><font class="Apple-style-span" face="'courier new', monospace">$: dmd  dtest.d </font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">dtest.d(8): Error: no property 'length' for type 'Result'</font></div></div></blockquote><div><br></div><div>I haven't applied either patch you mentioned below. Neither patch seems to address retro() or Result... </div>
<div><br></div><div>John</div><div><br></div><div><br></div><br><div class="gmail_quote">On Wed, Nov 2, 2011 at 6:43 AM, Robert Jacques <span dir="ltr"><<a href="mailto:sandford@jhu.edu">sandford@jhu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Tue, 01 Nov 2011 14:42:42 -0400, J Arrizza <<a href="mailto:cppgent0@gmail.com" target="_blank">cppgent0@gmail.com</a>> wrote:<br>

<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Robert,<br>
<br>
I tried using variant.d using your exact test program below and I got<br>
compiler errors:<br>
<br>
$ dmd  variant.d dtest.d<br>
variant.d(273): Error: no property 'length' for type 'Result'<br>
variant.d(273): Error: no property 'length' for type 'Result'<br>
variant.d(274): Error: no property 'length' for type 'Result'<br>
variant.d(274): Error: no property 'length' for type 'Result'<br>
variant.d(274): Error: no property 'length' for type 'Result'<br>
variant.d(275): Error: no property 'length' for type 'Result'<br>
variant.d(277): Error: no property 'length' for type 'Result'<br>
variant.d(277): Error: no property 'length' for type 'Result'<br>
variant.d(277): Error: no property 'length' for type 'Result'<br>
variant.d(277): Error: no property 'length' for type 'Result'<br>
variant.d(280): Error: no property 'length' for type 'Result'<br>
$ dmd -v<br>
DMD64 D Compiler v2.055<br>
<br>
Am I missing a switch or something?<br>
<br>
John<br>
</blockquote>
<br></div>
(I apologize if this gets sent twice, my newsreader is acting up)<br>
<br>
Nope, (hopefully) just patches. I maintain a list of the bugzilla patches (i.e. <a href="http://d.puremagic.com/issues/show_bug.cgi?id=5155" target="_blank">http://d.puremagic.com/issues/<u></u>show_bug.cgi?id=5155</a>) I've applied at the top of the file. But, mostly those are so DMD doesn't ICE; I've never seen this particular error before and am not sure how to interpret it. Hmm.. I don't use a Result type, but std.algoroithm does and one of the patches I always use is 6256 (<a href="http://d.puremagic.com/issues/show_bug.cgi?id=6256" target="_blank">http://d.puremagic.com/<u></u>issues/show_bug.cgi?id=6256</a>), which addresses length for Map.<br>

</blockquote></div><br><br clear="all"><div><br></div>-- <br>John<br>blog: <a href="http://arrizza.blogspot.com/">http://arrizza.blogspot.com/</a><br>web: <a href="http://www.arrizza.com/">http://www.arrizza.com/</a><br>