modules
Derek Parnell
derek at psych.ward
Sun Apr 30 14:37:13 PDT 2006
On Mon, 01 May 2006 00:59:01 +1000, James Pelcis <jpelcis at gmail.com> wrote:
> As I understand it, the documentation is referring to the default module
> name. If you felt like it, you could do something like the following:
>
> test1.d
> module blah;
>
> private import std.stdio;
>
> void print (char[] data) {
> writefln(data);
> }
>
> test2.d
> import blah;
>
> void main () {
> print("This was successful.");
> }
>
> This can confuse build though, I think.
I stand corrected. Thanks James. I thought that this would not compile.
You have given me a new issue to 'fix' in Build, damn it!
--
Derek Parnell
Melbourne, Australia
More information about the Digitalmars-d-learn
mailing list