Inline imports redivivus

Paul Backus snarwin at
Fri Jul 30 14:28:41 UTC 2021

On Friday, 30 July 2021 at 14:23:18 UTC, Ogi wrote:
> On Saturday, 24 July 2021 at 19:52:37 UTC, qxi wrote:
>> std.datetime::SysTime
> Why not `std.datetime:SysTime`? This would be consistent with 
> the selective import syntax: `import std.datetime : SysTime`.

A single colon is already used for `goto` labels, so `foo:bar;` 
could be either (a) the statement `bar;` with the label `foo:`, 
or (b) the statement `foo:bar;`, where `foo` is a module and 
`bar` is a symbol in that module.

More information about the Digitalmars-d mailing list