How to import & export modules
Vinod K Chandran
kcvinu82 at gmail.com
Sun Nov 10 23:53:22 UTC 2019
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 these modules in a separate
single module and then i only need to use that module. Say i have
a special module named "GuiLib.nim" And inside that if i write
like this--
import
App
Form
Button
....
export
import
App
Form
Button
....
Then in my main file, i only need to import the "GuiLib". How is
this possible in D ?
More information about the Digitalmars-d-learn
mailing list