Re: How to import & export modules

2019-11-10 Thread Mike Parker via Digitalmars-d-learn
On Monday, 11 November 2019 at 01:28:54 UTC, userTY wrote: import all; // can see App, Form and Button exported (public) symbols --- The approach of using an "all" module is an old hack that is no longer necessary. Today, the way to approach is to use a "package module".

Re: How to import & export modules

2019-11-10 Thread Arun Chandrasekaran via Digitalmars-d-learn
On Monday, 11 November 2019 at 01:28:54 UTC, userTY wrote: On Sunday, 10 November 2019 at 23:53:22 UTC, Vinod K Chandran wrote: [...] You must use a module that has public imports. Public imports are visible from the module that contain them but most importantly from the module that imports

Re: How to import & export modules

2019-11-10 Thread userTY via Digitalmars-d-learn
On Sunday, 10 November 2019 at 23:53:22 UTC, Vinod K Chandran wrote: Hi all, I am practicing D by writting a win API gui wrapper. I want to use a single module import to use this Gui lib. Say i have 10 modules like-- "App.d, Form.d, Button.d, Label.d, TextBox.d, ComboBox.d, ListBox.d,

How to import & export modules

2019-11-10 Thread Vinod K Chandran via Digitalmars-d-learn
Hi all, I am practicing D by writting a win API gui wrapper. I want to use a single module import to use this Gui lib. Say i have 10 modules like-- "App.d, Form.d, Button.d, Label.d, TextBox.d, ComboBox.d, ListBox.d, CheckBox.d, Panel.d, DateTimePicker.d" In Nim, i can import and export all