Yes, in fact, the eventData is currently only used at the time the engine
check all active links against a newly generated event. The
GetLastEventData would require to have it available at the time of the
execution of the LinkEffect when a link is fired.
I understand that this may be a problem for an engine. While an event is
only generated at a time and checked immediately, several link effects
could have been added to the execution queue, E.G. a link effect action can
fire another link.
I think that programmers of engine would consequently ask for some
restrictions, for instance, the following one :
"GetLastEventData only returns the eventData associated with the last
generated event. It should generally be called as the first elementary
action of the linkEffect in order to prevent other link to be fired before
its evaluation. The author should also be aware of possible side effects if
several links may fire on the same event."
That means that an author could not be sure to get the eventData associated
with the current link when evaluating GetLastEventData in the linkEffect.
This would be erroneous if another event was generated after the link fired
but before the action is evaluated.
I don't think that the EventData type could be a problem. Some other
elementary actions use several types such as SetVariable for instance.
Any opinion ?
BR,
Emmanuel
__________________________________________________________________
Emmanuel BEUQUE mailto:ebeuque@pratique.fr
MediaServ tel: +33 (0) 2 99 64 35 64
Multimedia consultant & developer fax: +33 (0) 2 99 64 36 65