Thoughts on versioning

Dukc ajieskola at gmail.com
Wed Oct 27 18:41:02 UTC 2021


On Wednesday, 27 October 2021 at 18:22:32 UTC, jmh530 wrote:
> On Wednesday, 27 October 2021 at 18:01:47 UTC, Dukc wrote:
>> [snip]
>>
>> - We change the language to allow relative imports, and 
>> convert Phobos to use them. This is needed to allow using two 
>> or more different versions of Phobos side-by-side.
>> [snip]
>
> Can you expand on what you mean by relative imports?

Importing a package relative to current module in path. For 
example, being able to import `std.range` from 
`std.algorithm.iteration` without specifying `std`. The syntax 
might be `import package.package.range`, where `package` means 
the parent module.

The idea is the same as with relative symbolic links (for example 
`../bin/dmd`), as opposed to absolute symbolic links (say 
`/home/walter/d/bin/dmd`)


More information about the Digitalmars-d mailing list