Warn on unused imports?

a11e99z black80 at bk.ru
Sun Jan 31 19:42:57 UTC 2021


On Sunday, 31 January 2021 at 19:22:43 UTC, a11e99z wrote:
> On Sunday, 31 January 2021 at 19:18:04 UTC, a11e99z wrote:
>> suggestion: implicit import at same line as using
>>
>> auto result = std.algorithm:find!blahblah(args);
>>
>
> note: colon as separator for module part and other
> u can still use ufcs and usual magic
> module part just says where to look object or method

OK, u saw implementation for classes with 2 colons
class Derived : some.module:Base {
its simple sample but can be more difficult that uses colon too.
     at here 1st colon means inheritance

u can implement it as
class Derived : some.module at Base { // @
i dont care
but "inplace import with using" looks more preferably


More information about the Digitalmars-d mailing list