Re: List installed modules

2018-03-10 Thread psychoticRabbit via Digitalmars-d-learn

On Sunday, 11 March 2018 at 03:52:19 UTC, psychoticRabbit wrote:


Whether dub does that currently I do not know, as i don't use 
dub, or any additional packages outside of phobos.


oh > dub list   ;-)


Re: List installed modules

2018-03-10 Thread psychoticRabbit via Digitalmars-d-learn

On Sunday, 11 March 2018 at 01:04:27 UTC, Roberto wrote:

How do I list installed modules?



or..

https://dlang.org/phobos/index.html



Re: List installed modules

2018-03-10 Thread psychoticRabbit via Digitalmars-d-learn

On Sunday, 11 March 2018 at 01:04:27 UTC, Roberto wrote:

How do I list installed modules?

dmd --list-modules
datefmt
dateparser
std.algorithm
std.array
std.conv
std.datetime
std.digest
std.exception
std.file
std.format
std.getopt
std.json
std.math
...


Presumably, you mean packages installed by dub, as opposed to 
what comes with phobos as part of the installation.


If that's what you mean, then that could be an enhancment request 
- i.e. to have dub maintain a list of what's installed, like any 
good package manager should.


Whether dub does that currently I do not know, as i don't use 
dub, or any additional packages outside of phobos.


Re: List installed modules

2018-03-10 Thread Roberto via Digitalmars-d-learn

On Sunday, 11 March 2018 at 01:55:07 UTC, Jonathan M Davis wrote:
On Sunday, March 11, 2018 01:04:27 Roberto via 
Digitalmars-d-learn wrote:

[...]


The compiler has no concept of installed modules any more than 
C/C++ has a concept of installed header files. It has paths 
that it looks in for modules when it's told to import them, but 
it doesn't know or care about any modules until they're 
explicitly imported. If you want to see the default import 
path, then look at dmd.conf and what it passes to the -I flag. 
Otherwise, it's a question of where dmd is run from and what 
additional -I flags the build process passes to dmd.


- Jonathan M Davis


Thanks. I'll write an script.


Re: List installed modules

2018-03-10 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, March 11, 2018 01:04:27 Roberto via Digitalmars-d-learn wrote:
> How do I list installed modules?
>
> dmd --list-modules
> datefmt
> dateparser
> std.algorithm
> std.array
> std.conv
> std.datetime
> std.digest
> std.exception
> std.file
> std.format
> std.getopt
> std.json
> std.math
> ...

The compiler has no concept of installed modules any more than C/C++ has a
concept of installed header files. It has paths that it looks in for modules
when it's told to import them, but it doesn't know or care about any modules
until they're explicitly imported. If you want to see the default import
path, then look at dmd.conf and what it passes to the -I flag. Otherwise,
it's a question of where dmd is run from and what additional -I flags the
build process passes to dmd.

- Jonathan M Davis