DIP11

Jacob Carlborg doob at me.com
Fri Aug 12 12:12:07 PDT 2011


On 2011-08-12 20:36, Steven Schveighoffer wrote:
> On Fri, 12 Aug 2011 14:24:46 -0400, Jacob Carlborg <doob at me.com> wrote:
>
>> On 2011-08-12 15:49, Steven Schveighoffer wrote:
>>> Note that the pragmas are specific to that file only. So you don't have
>>> an import file which defines pragmas. This is to prevent conflicts
>>> between two files that declare the same package override.
>>
>> Now I'm not quite sure I understand. Are you saying that every file
>> needs to have these pragma imports ?
>
> Let's say file a.d pragmas that module foo means
> http://foo.com/projectx, and module b.d from another project pragmas
> that module foo means http://bar.com/projecty. If I import both a and b,
> what happens?
>
> It only makes sense for a pragma to affect the current file.
>
> This is similar to how version=x statements only affect the current file.

Again, will that mean you have to specify a pragma for each file?

Just for the record, you cannot always solve all dependencies, it can 
happen that two packages conflict with each other.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list