00:32:31  * Something12_joined
01:15:08  <kostco>urzds: i think your code may be wrong here/there
01:15:08  <kostco>So you define _onadapt as a function that takes no arguments that makes sense,
01:15:08  <kostco>then you call onadapt(callback/thread)
01:15:08  <kostco>and then onadapt defined _onadapt as the callback, but youre never calling adapt,
01:15:08  <kostco>local function c1() print('onadapt') end
01:15:08  <kostco>local function c2() print('real cb') end
01:15:08  <kostco>local function onadapt(c1, c2)
01:15:09  <kostco> _onadapt = c1
01:15:09  <kostco> adapt(c2, someCallbackAcceptingFunction)
01:15:10  <kostco>end
02:05:50  * DarkGodquit (Quit: Leaving)
05:14:03  * Something12_changed nick to Something12
05:24:25  * SkyRocknRolljoined
05:59:17  * hdms_joined
05:59:52  * hdms_quit (Client Quit)
06:00:10  * hdmsquit (Ping timeout: 260 seconds)
07:28:39  * Xequit (Ping timeout: 265 seconds)
07:28:39  * rjequit (Ping timeout: 265 seconds)
07:30:18  * urzds_joined
07:30:35  * endoujoined
07:33:29  * slurpquit (Ping timeout: 244 seconds)
07:33:41  * rphillips_joined
07:34:09  * b_lindeijerjoined
07:34:09  * b_lindeijerquit (Changing host)
07:34:09  * b_lindeijerjoined
07:35:00  * LuaStonedquit (*.net *.split)
07:35:03  * endou_quit (*.net *.split)
07:36:29  * urzdsquit (*.net *.split)
07:36:58  * bjornquit (*.net *.split)
07:37:28  * Xe`joined
07:38:32  * ksheedlo-rax_joined
07:39:25  * rjejoined
07:40:16  * SkyRocknRollquit (*.net *.split)
07:40:48  * ksheedlo-raxquit (*.net *.split)
07:40:48  * songgaoquit (*.net *.split)
07:40:53  * rphillipsquit (*.net *.split)
07:40:55  * Michalikquit (*.net *.split)
07:41:01  * tfnicoquit (*.net *.split)
07:42:25  * Something12quit (*.net *.split)
07:45:42  * songgaojoined
07:47:24  * Xe`changed nick to Xe
07:53:59  * |oo|joined
07:54:09  * |oo|changed nick to Guest20467
07:56:06  * b_lindeijerquit (*.net *.split)
07:56:17  * Igelquit (*.net *.split)
07:56:17  * Guest74415quit (*.net *.split)
07:56:18  * leitequit (*.net *.split)
07:56:40  * bjornjoined
07:56:41  * Michalikjoined
07:57:10  * SkyRocknRolljoined
07:57:25  * bjornchanged nick to Guest91629
07:57:27  * Guest91629quit (Read error: Connection reset by peer)
07:58:32  * Igeljoined
07:58:33  * b_lindeijerjoined
07:58:33  * b_lindeijerquit (Changing host)
07:58:33  * b_lindeijerjoined
08:07:43  * tfnicojoined
08:17:52  * slurpjoined
08:24:10  * Michalikquit (Changing host)
08:24:10  * Michalikjoined
08:24:36  * tfnicoquit (Changing host)
08:24:36  * tfnicojoined
08:28:30  * DarkGodjoined
08:34:05  * dg__joined
08:41:12  * DarkGodquit (*.net *.split)
09:32:01  * leitejoined
09:33:15  * rphillips_quit (Ping timeout: 264 seconds)
09:38:10  * rphillipsjoined
09:51:34  * Xechanged nick to Guest95688
09:51:34  * Guest95688quit (Killed (tepper.freenode.net (Nickname regained by services)))
09:54:27  * Xejoined
10:57:43  <urzds_>kostco: _onadapt is a function that is called just before any callback will be called by adapt(). That the default noop takes no argument is valid - Lua will just ignore the argument it is being called by in adapt(). When I call setonadapt() [I just clarifiied the name in the patch], it just sets the _onadapt hook to whatever function I pass it. This function is supposed to receive the callback (thread or function) as an argument, and shall be called by
10:57:43  <urzds_> adapt() just before it executes the actual callback.
10:58:30  * urzds_changed nick to urzds
10:59:49  <urzds>kostco: Ahhhh, I think I get what you are saying. When I want to use LuaCov, I shall wrap *all* callbacks in my code, which I pass to Luvit, in utils.adapt(), so that I can set the debug hooks as required for LuaCov to work?
11:01:28  <urzds>That seems very cumbersome... I would have to modify not the test that I run with LuaCov, but the library code that this test calls.
11:02:51  <urzds>That's all possible, but also adds calls to my actual module (the one I want to test), which is very specific to the test, but not for the actual work done by the module. (Hope it's possible to understand that sentence...)
12:58:18  * SkyRocknRollquit (Remote host closed the connection)
15:07:27  * piernovquit (Ping timeout: 250 seconds)
15:07:53  * piernovjoined
16:35:10  * dg_joined
16:35:38  * Xequit (Ping timeout: 240 seconds)
16:35:40  * leitequit (Ping timeout: 240 seconds)
16:35:40  * dg__quit (Ping timeout: 240 seconds)
16:36:55  * leitejoined
16:40:44  * Xejoined
18:34:46  * slurpquit (*.net *.split)
18:42:49  * slurpjoined
19:07:11  * Igelquit (*.net *.split)
19:07:12  * Guest20467quit (*.net *.split)
19:07:28  * rweichlerquit (*.net *.split)
19:07:32  * torquequit (*.net *.split)
19:07:40  * creationixquit (*.net *.split)
19:07:56  * leitequit (*.net *.split)
19:08:14  * urzdsquit (*.net *.split)
19:08:18  * boxofroxquit (*.net *.split)
19:08:28  * slurpquit (*.net *.split)
19:08:35  * tfnicoquit (*.net *.split)
19:08:39  * daurnimatorquit (*.net *.split)
19:08:43  * dobsonquit (*.net *.split)
19:08:44  * kostcoquit (*.net *.split)
19:08:52  * Michalikquit (*.net *.split)
19:08:55  * songgaoquit (*.net *.split)
19:08:59  * ksheedlo-rax_quit (*.net *.split)
19:09:30  * rphillipsquit (*.net *.split)
19:09:36  * endouquit (*.net *.split)
19:09:38  * erlbot--quit (*.net *.split)
19:09:42  * squeekquit (*.net *.split)
19:09:52  * rchquit (*.net *.split)
19:09:56  * grep_awayquit (*.net *.split)
19:09:58  * piernovquit (*.net *.split)
19:10:11  * rjequit (*.net *.split)
19:10:25  * indexzeroquit (*.net *.split)
19:10:25  * coderkevinquit (*.net *.split)
19:10:32  * Xequit (*.net *.split)
19:12:05  * grep_awayjoined
19:12:05  * rchjoined
19:12:05  * squeekjoined
19:12:05  * erlbot--joined
19:12:05  * endoujoined
19:12:05  * rphillipsjoined
19:12:05  * Guest12579joined
19:12:05  * rweichle1joined
19:12:05  * creationix_joined
19:12:05  * Xejoined
19:12:05  * Igel_joined
19:12:05  * slurpjoined
19:12:05  * leitejoined
19:12:05  * tfnicojoined
19:12:05  * Michalikjoined
19:12:05  * songgaojoined
19:12:05  * ksheedlo-rax_joined
19:12:05  * urzdsjoined
19:12:05  * daurnimatorjoined
19:12:05  * boxofroxjoined
19:12:05  * dobsonjoined
19:12:05  * kostcojoined
19:14:46  * piernovjoined
19:14:46  * rjejoined
19:14:46  * indexzerojoined
19:14:46  * coderkevinjoined
19:23:09  * Igeljoined
19:26:57  * leitequit (Ping timeout: 240 seconds)
19:27:29  * creationix_quit (*.net *.split)
19:27:30  * Xequit (*.net *.split)
19:27:31  * Igel_quit (*.net *.split)
19:27:37  * creationixjoined
19:28:24  * slurpquit (Ping timeout: 264 seconds)
19:29:15  * rweichlerjoined
19:32:41  * torquejoined
19:32:50  * Xejoined
19:39:05  * rweichle1quit (*.net *.split)
19:52:42  * Xequit (Ping timeout: 240 seconds)
19:52:43  * creationixquit (Ping timeout: 240 seconds)
19:58:33  * creationixjoined
20:03:36  * Xejoined
20:44:11  * torque_joined
20:47:14  * rweichle1joined
20:57:16  * torquequit (Ping timeout: 246 seconds)
20:57:31  * rweichlerquit (Ping timeout: 246 seconds)
21:16:14  * leitejoined
22:51:23  * coderkevinquit (Remote host closed the connection)
22:51:25  * kostcoquit (Remote host closed the connection)
23:49:34  * coderkevinjoined
23:54:17  * leitequit (*.net *.split)
23:54:21  * torque_quit (*.net *.split)