[fpc-devel] "Signals"

Mark Morgan Lloyd markMLl.fpc-devel at telemetry.co.uk
Fri Sep 26 11:36:47 CEST 2014

Michael Schnell wrote:
> 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 ?

Yes, get him to state /exactly/ what language he's talking about that 
provides this facility, so that we're not groping in the dark based on 
your account of his recollection of the rumours he's picked up from 
sources that might not be reliable.

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the fpc-devel mailing list