Thoughts on versioning

jmh530 john.michael.hall at
Wed Oct 27 20:05:38 UTC 2021

On Wednesday, 27 October 2021 at 18:41:02 UTC, Dukc wrote:
> [snip]
> 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`)

Yeah, I was thinking more of the second example. What tripped me 
up is that manipulating directories on a relative basis has a 
current working directory that you are relative to. So for 
instance, something like `from std.algorithm.iteration import 
../../range` made a bit more sense to me, but that seemed a bit 

More information about the Digitalmars-d mailing list