module vs import
Leandro Lucarella
llucax at gmail.com
Sun Jun 8 18:13:24 PDT 2008
Jarrett Billingsley, el 8 de junio a las 13:54 me escribiste:
> "Tomasz Sowiñski" <tomeksowi at gmail.com> wrote in message
> news:g2h5f2$1jnq$1 at digitalmars.com...
> > Robert Fraser Wrote:
> >
> >> The "module" keyword is used to assign a name to your module (which
> >> incidentally must coincide with its filename & folder structure) while
> >> "import" gives you access to the module with the given name.
> >
> > By the way, why do you have to repeat the filename in the file itself? I'm
> > sure there must be some reason, but I can't see it now.
> >
> > Tomek
>
> I think it might have to do with making it possible to make D work on
> filesystems where there is no concept of "directories", such as a
> database-oriented FS.
You mean *relational* database, right? Because hierarchical filesystems
*are* databases (hierarchical databases in fact =). LDAP is another
popular example of hierarchical database.
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
ASALTAN, GOLPEAN SALVAJEMENTE A ANCIANA Y LE COMEN LA PASTAFROLA.
-- Crónica TV
More information about the Digitalmars-d-learn
mailing list