module vs import

Saaa empty at needmail.com
Wed Jun 4 21:21:20 PDT 2008


You import modules with 'import' . A module is a .d file.

You only use the 'module' keyword to name your module.
ie.
module test.main;

import test.error;

..

> I'm having some trouble understanding how module differs from import. As 
> far as i see it they both pretty much do the exact same thing, ie allow 
> you access to functions, classes etc. of another .d file. Or am i 
> overlooking something quite basic and obvious here? 




More information about the Digitalmars-d-learn mailing list