Named multi-imports
Mike Wey via Digitalmars-d
digitalmars-d at puremagic.com
Wed Aug 16 07:42:51 PDT 2017
On 16-08-17 09:58, Gary Willoughby wrote:
> On Tuesday, 15 August 2017 at 03:37:39 UTC, rikki cattermole wrote:
>> On 15/08/2017 2:59 AM, Johnson wrote:
>>> Not only that, but it requires adding more files to the command line.
>>>
>>> I currently have 3 import files to separate the gtk from gdk that and
>>> the only reason they exist is to combine them in to one named import ;/
>>>
>>>
>>> Doesn't seem like much but that's 3 extra files that don't really
>>> need to exist.
>>>
>>> Hopefully D already implements a way to do what I'm asking.
>>
>> Or instead of a new language feature, the gtk-d guys could have
>> package files ;)
>
> This! Just create a PR for Gtk-D to add packages.
Wouldn't that just move the problem?
You then get an package that imports gtk.Window and a other package that
imports gdk.Window, and if you want to use both you still need to add a
renamed import or a static import in your own file.
--
Mike Wey
More information about the Digitalmars-d
mailing list