Framework design, initialization and framework usage
H. S. Teoh
hsteoh at quickfur.ath.cx
Tue May 7 17:43:57 UTC 2019
On Tue, May 07, 2019 at 07:21:52PM +0200, Robert M. Münch via Digitalmars-d-learn wrote:
[...]
> > interface myFrameworkApp {
> > void init();
> > }
[...]
Note: it's a very bad idea to call a member function 'init'. It
conflicts with the built-in .init property of all types, and can lead to
strange bugs / confusing behaviours.
Call it something else, like 'initialize'.
T
--
If lightning were to ever strike an orchestra, it'd always hit the conductor first.
More information about the Digitalmars-d-learn
mailing list