On Tuesday, 19 May 2020 at 22:10:25 UTC, Adam D. Ruppe wrote:
On Tuesday, 19 May 2020 at 22:01:03 UTC, Vinod K Chandran wrote:
Is it possible to write some class members in another module ?
You can make some of members be other structs that you
aggregate together.
That's a good idea but there is a problem.
As per your idea--
```
struct Events{
uint click;
uint shown;
uint move;
....
}
class Window : Control{
Events event;
.....
}
// Now, we need to use like this
auto form= new Window();
form.event.click = bla_bla;
// I really want to use like this
auto form= new Window();
form.click = bla_bla;
```