Linking from source-code

Andrea Fontana nospam at example.com
Thu Nov 14 05:49:00 PST 2013


On Thursday, 14 November 2013 at 12:35:16 UTC, Jacob Carlborg 
wrote:
> On 2013-11-14 13:12, Andrea Fontana wrote:
>
>> So I though this function didn't exist. Why doesn't it work?
>
> I doesn't work when D modules are used like header files. See: 
> https://d.puremagic.com/issues/show_bug.cgi?id=2776
>
> Another idea would be to use dub:
>
> http://code.dlang.org/

I think it's a better idea to make it works from dmd/rdmd.

It should be a (working) language feature. It makes no sense for 
me to use a third party tool for this. Have I to use dub to 
compile a single-file-project that use just curl or a simple 
library? If implemented inside language, all compiler should 
support it, and IDE just support it automagically :)

It would be cool to just write rdmd main.d ignoring dependencies 
hell :)

BTW: you say "used like header files". You mean files that are 
not "compiled" but "imported"?



More information about the Digitalmars-d-learn mailing list