[Gambas-user] Forward events from constructor
Tobias Boege
taboege at ...626...
Sun Oct 4 18:29:06 CEST 2015
On Sat, 03 Oct 2015, Beno??t Minisini wrote:
> > Is there a limitation, about raising events from constructors, I don't know
> > of? Also note how, in the demonstration project, I can very well initiate
> > the validation procedure just after the constructor finished.
> >
>
> The logic behind that behaviour is that an object whose constructor is
> not finished should not be able to raise or catch events.
>
> Said differently, an object must be ready to deal with events.
>
Uff, I didn't expect the answer to make this much sense...
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
More information about the User
mailing list