Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2014-04

Order of Observer notification (fpObserver)

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

luiz americo pereira camara

Hi,

I just notice that the observers are notified in reverse order (see TPersistent.FPONotifyObservers), i.e., last attached observer is notified first.

Is this the intended behavior?

Any special reason?

It was expecting that the observers were notified in attached order

Luiz

Reply by email

Michael Van Canneyt
to luiz americo pereira camara
luiz americo pereira camara wrote 9 lines
Hi, I just notice that the observers are notified in reverse order (see TPersistent.FPONotifyObservers), i.e., last attached observer is notified first. Is this the intended behavior? Any special reason? It was expecting that the observers were notified in attached order

You should not expect anything. No order is guaranteed.

Michael.

Reply by email

luiz americo pereira camara
to Michael Van Canneyt
"Michael Van Canneyt" wrote 12 lines
On Mon, 21 Apr 2014, luiz americo pereira camara wrote: > Hi, > > It was expecting that the observers were notified in attached order You should not expect anything. No order is guaranteed.

Ok. I suggest to add a remark in the documentation

Luiz

Reply by email