[fpc-devel] "Signals"

Boian Mitov mitov at mitov.com
Fri Sep 26 22:00:08 CEST 2014


We already implement equivalent of signals as I mentioned in Mitov.Runtime, 
however they are anonymous methods based, and we call them TMultiProc but 
they are the same thing. I even showed a code snippet in another post.

With best regards,
Boian Mitov

-------------------------------------------------------
Mitov Software
www.mitov.com
-------------------------------------------------------
-----Original Message----- 
From: Michael Schnell
Sent: Friday, September 26, 2014 12:33 AM
To: FPC developers' list
Subject: [fpc-devel] "Signals"

Yesterday, I had a discussion with a colleague about programming languages.

He said that he did not like Object-Pascal / fpc because it lacks the
concept of "signals" he finds in other languages / libraries. (He is not
an expert but discusses on base of rumors he collected.)

With "signals" he meant a kind of multi-target events.

He described that multiple parts (units) of a program (or even units
within a set of sunning programs) can "subscribe" to a signal (or
several of them), and whenever anyone "rises" a signal all subscribers
get notified and can react.

Seemingly the execution line in such a "unit" might be as well the main
thread or a worker-thread (or even another task/program) and the event
handler can be defined to work on this thread (he did not elaborate if
always or optionally a newly created thread can be used).

Unfortunately I was not able to come up with a similarly powerful
concept available in fpc.

Any suggestions ?

-Michael
_______________________________________________
fpc-devel maillist  -  fpc-devel at lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel 




More information about the fpc-devel mailing list