How to use classes from another d files

Daniel Kozak kozzi11 at gmail.com
Tue Oct 22 18:34:52 UTC 2019


On Tue, Oct 22, 2019 at 8:30 PM Vinod K Chandran via
Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> wrote:
>
> On Tuesday, 22 October 2019 at 17:38:58 UTC, Adam D. Ruppe wrote:
> > On Tuesday, 22 October 2019 at 17:34:51 UTC, Vinod K Chandran
> > wrote:
> >> Hi all,
> >> I am new to D. But some fair experience with vb.net. I was
> >> playing with D classes.  I wrote a class in a D file.
> >> The file name is "classFile.d"
> >
> > did you compile with dmd -i or list both files on the dmd
> > command line?
>
> Thanks for the reply. Nope. I just typed this code in VS Code and
> hit the run button. Thats all. i think this cmd business will be
> difficult for me.

You should use dub. You will probably need it anyway in the future.

VS Code have nice plugins to work with D
you can install D Language utility extension pack


More information about the Digitalmars-d-learn mailing list