Re: Include http based module

2021-02-20 Thread Imperatorn via Digitalmars-d-learn
On Friday, 19 February 2021 at 19:20:39 UTC, tcak wrote: I have written a test module and put it into /var/www/html: module mymodule; import std.stdio; void testMe(){ writeln("I tested you!"); } Then I have a main file where I would like to call the function "testMe". My build line is

Re: Include http based module

2021-02-19 Thread Mike Parker via Digitalmars-d-learn
On Friday, 19 February 2021 at 19:20:39 UTC, tcak wrote: Is there any way to include http(s) based modules into compilation (Please do not suggest dub etc)? No, the compiler only looks for modules on the filesystem via standard file paths, not via URI. There isn't any tool in the D

Include http based module

2021-02-19 Thread tcak via Digitalmars-d-learn
I have written a test module and put it into /var/www/html: module mymodule; import std.stdio; void testMe(){ writeln("I tested you!"); } Then I have a main file where I would like to call the function "testMe". My build line is as follows: dmd main.d "http://localhost/mymodule.d;