
On 14 Dec 2008, at 04:53, Paul Sujkov wrote:
Hi everybody,
I'm pretty new to the Reactive library, but I see it very useful; currently trying to get to work simple clock examples from http://netsuperbrain.com/blog , but can't find any simple examples of the full reactive control flow :( serfing this mail list gives little help too (or maybe I just can't search well). I mean, can somebody give a code snippet with the event (atTime 5 would be enough), the sink (simple IO, or the sound bell call, or anything observable at all) - I hope I understand the sink as an event handler correctly - and a main function call that fires the event. Just need a full example with an observable effect to start with
Sorry for a bit silly question, but anyway I think that a full example of that kind would be a good start point for beginners. Thank you
In theory, you shouldn't need to write your own sink. If you use one of the legacy adapters (reactive-glut, or reactive-fieldtrip) at the moment, then it will do all of the event input for you. The tetris program linked earlier on the mailing list uses reactie-fieldtrip, and should give you a good idea of how to go about it. Bob