| |
| |
| |
|
Comments:
<0> I'm writting an irc cl***. what do you think would be a better design, to accept a delegate of OnConnect, OnMessage, OnDisconnect etc functions, or to make a base cl*** with those functions being virtual so that the user can inherit the cl*** and then overload them? <1> another irc cl*** <1> wonderful
<1> delegates <0> for what reason? <1> dunno <1> :) <0> :| <1> you dont need to create a whole new decendant just to irc then <2> isnt that what you have events for ? :P <0> I'm not sure <2> most perl irc implementations ive seen have worked like that <0> I would use virtual functions in C++. not sure what's the prefered way in C# <2> either hooking events for commands or serials <2> look into events
<2> i'd atleast argue that for something like this events/delegates are more natural <2> as thats whats happening; events <0> yeah true <2> making it virtual etc would require inheriting the cl*** to implement something that uses it <2> more cumbersome <2> and with events you can just drop a component on a form or whatever <2> and it would expose the events <2> bedtime. zzzzz <0> night, thanks for info <3> Howdy all <3> Any way to read in a Windows Registry hive to an XML document? <4> can anyone give me a tip on what to look up for being notified of system events.. i want a function to be triggered on a keypress.. i guess a keyboard interrupt.. but not really when the program is the active window
Return to
#csharp or Go to some related
logs:
#computers #windowsxp dextroamphetimine is meth?
electicution+health
FTGL VS2005 #gentoo #politics cue flashmovie rear suspension cobra 427 #c
|
|