From: Anatoly Z. <ana...@gm...> - 2006-02-23 18:03:17
|
On 2/23/06, Robert Dockins <rob...@fa...> wrote: > > How would one go about adding them? I'm not familiar with the how > WxEiffel and the WxHaskell build system works. Is there a particular > reason they aren't exposed already? WxHaskell uses wxc part of wxEiffel -- basically, C wrappers around C++ classes methods. And as far as I know wxEiffel doesn't evolve anymore, so there's noone to add wrappers for missing classes. > I'm not sure I fully understand, so let me paraphrase and see if I've > got this right: > > 'makeEvent' takes an object which can handle events and returns a > pair where > -- the first element triggers an event by via the menu event > handler on the passed in object > -- the second element lets you set the event handler Exactly. I am sorry for omitting the description. Just to note: every makeEvent generates distinct event object. > If you want to pass additional data beyond the simple occurance of > the event, you need external concurrency primitives. Yes, but I personaly think that passing haskell data between haskell threads through C-land is less natural (and heavier) than using native primitives. |