Hi everyone.
I'm new to D, coming from a Java/Python background. I've been
reading the excellent The D Programming Language book, and want
to now start playing around with D.
I'm having an issue with importing. When I have the following
file:
file ~/src/sample.d: =
Thanks for your response, H.S.Teoh.
On Wednesday, 13 February 2013 at 17:47:09 UTC, H. S. Teoh wrote:
You need to specify both files on the command line, so that the
linker
knows where to find everything:
rdmd sample.d sample_a.d
Running this from the command line produces
Hmm.
I moved my two sample files from ~/path/to/where/I/was/working
to ~/ and the import worked.
This makes me suspect a permissions issue. I'll carry on working
in ~/ for now, until I sort my stupidity out!
Thanks for your help.
On Wednesday, 13 February 2013 at 19:33:00 UTC, jerro wrote:
This solves the issue:
rdmd --force sample
Hi jerro,
That definitely helped. There's still some things I haven't
figured out yet about D's importing, but this has got me going.
Thank you.