<div class="gmail_quote">On Sun, Feb 6, 2011 at 9:48 AM, David Nadlinger <span dir="ltr"><<a href="mailto:see@klickverbot.at">see@klickverbot.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have always been pleased to see improvements in compile time code execution possibilities, but today I hit what must be the weirdest DMD error message I've ever seen:<br>
<br>
/usr/local/bin/../include/d2/std/format.d(434): Error: can only Applications Desktop Documents Downloads Library Movies Music Pictures Public Sites test.d a pointer, not a 'int'<br>
<br>
To be honest, I have no idea how this happens, but somehow DMD picked up the contents of the directory the source file, test.d, resides in. It looks like this (note the missing ampersand):<br>
———<br>
import std.stdio;<br>
void main() {<br>
    int e;<br>
    readf( "%d", e );<br>
}<br>
———<br>
<br>
Any idea what on earth could be going on here?<br><font color="#888888">
<br>
David<br>
</font></blockquote></div><br><div>On 64 bit linux (Arch, running dmd on a multilib installation), I get "/usr/include/d/std/format.d(428): Error: can only * a pointer, not a 'int'"</div><div>It almost seems like something is expanding the * syntax in your shell?</div>