J
Jesper
Hi,
Background.
In an engineering application I consider using events to
control the flow in the program under the following
philosophy: When a value X change it fires a "i'm
changed" event. A value Y will is a function of X and
will therefore subscribe to X-changed event. Y will
recalculate and fire its own "i'm changed" in order for
other values dependent on Y to recalculate. This would be
a good solution to the nature of my project.
Like
A = 5
Fire A chaged
capture A Changed
B = 5 * A
fire B changed
capture B changed
C = B*B
I have the following question:
Is the firing of an event equal to call a procedure, i.e.
will the execution immediately go a subscriber of the
event and then return or will it start a new thread.
best regards Jesper.
Background.
In an engineering application I consider using events to
control the flow in the program under the following
philosophy: When a value X change it fires a "i'm
changed" event. A value Y will is a function of X and
will therefore subscribe to X-changed event. Y will
recalculate and fire its own "i'm changed" in order for
other values dependent on Y to recalculate. This would be
a good solution to the nature of my project.
Like
A = 5
Fire A chaged
capture A Changed
B = 5 * A
fire B changed
capture B changed
C = B*B
I have the following question:
Is the firing of an event equal to call a procedure, i.e.
will the execution immediately go a subscriber of the
event and then return or will it start a new thread.
best regards Jesper.