2022-09-18 GnuCash IRC logs

00:13:18 <chris> instead of std::optional the other interface is to return a gnc_numeric* which means allocate/deallocate annoyances
01:19:58 *** fell has quit IRC
01:21:09 *** fell has joined #gnucash
01:21:09 *** ChanServ sets mode: +o fell
02:15:05 *** sbluhm has joined #gnucash
02:48:05 *** Gandalf has joined #gnucash
03:14:20 *** sbluhm has quit IRC
03:14:45 *** frebe has joined #gnucash
03:49:03 *** NoobAlice has quit IRC
04:07:30 *** gjanssens has joined #gnucash
04:07:30 *** ChanServ sets mode: +o gjanssens
04:44:15 *** bertbob has quit IRC
04:45:03 *** gjanssens has quit IRC
05:06:08 *** frebe has quit IRC
05:21:25 *** frebe has joined #gnucash
05:44:37 *** bertbob has joined #gnucash
05:44:38 *** ChanServ sets mode: +v bertbob
06:14:50 *** frebe has quit IRC
07:16:11 *** frebe has joined #gnucash
07:47:03 *** frebe has quit IRC
08:10:50 *** Gandalf has quit IRC
08:12:08 *** Gandalf has joined #gnucash
09:50:06 *** Trygve[m]1 has quit IRC
11:20:55 *** frebe has joined #gnucash
11:39:45 *** field^Mop has joined #gnucash
12:09:22 <jralls> chris, std::optional was created specifically to work around needing nullable raw pointers to signify an invalid response. With gnc_numeric you could use an error value (denominator 0), but that would be a bit of a hack as they're intended for signaling overflow/underflow/NaN.
12:15:38 *** NoobAlice has joined #gnucash
12:15:38 *** ChanServ sets mode: +v NoobAlice
12:16:35 <jralls> chris, Your impl looks correct to me.
12:18:12 <jralls> There's an architectural issue that I should have flagged you on long ago, though: The stock assistant continues GnuCash's unfortunate tradition of poor MVC separation.
12:23:34 *** Guest62 has quit IRC
12:23:37 *** jonp has joined #gnucash
12:58:50 *** field^Mop has quit IRC
13:14:06 *** sbluhm has joined #gnucash
13:28:06 <fell> jralls: is 'defaults read --app Gnucash' still valid?
13:31:30 <jralls> -app, not --app, and seometimes one must give either the full domain, org.gnucash.Gnucash, or the path, usually /Applications/Gnucash.app. It seems to depend on macOS's mood. Just now I had to use the path.
13:35:22 *** arst_ has joined #gnucash
13:35:32 <jralls> Eh, if you use the domain leave off -app, i.e. defaults read org.gnucash.Gnucash; if you're not using the bundle (maybe using MacPorts instead) the domain is just gnucash.
14:21:42 *** Hamaryns has joined #gnucash
14:21:42 *** ChanServ sets mode: +v Hamaryns
14:23:55 *** frebe has quit IRC
14:52:12 *** frebe has joined #gnucash
15:05:12 *** Gandalf has quit IRC
15:09:08 *** chipxxx has joined #gnucash
16:01:08 *** Hamaryns has quit IRC
16:09:36 *** sbluhm has quit IRC
16:26:03 *** frebe has quit IRC
16:28:20 *** frebe has joined #gnucash
16:35:19 *** frebe has quit IRC
16:36:27 *** warlord has quit IRC
17:50:37 *** field^Mop has joined #gnucash
18:00:39 *** field^Mop has quit IRC
18:17:18 *** JayC has quit IRC
21:44:55 *** JayC has joined #gnucash
21:44:55 *** ChanServ sets mode: +v JayC
21:54:53 *** JayC has quit IRC
21:56:59 *** storyjesse has joined #gnucash
22:29:47 *** JayC has joined #gnucash
22:29:48 *** ChanServ sets mode: +v JayC
22:44:41 *** CDB-Man_ has joined #gnucash
22:44:42 *** ChanServ sets mode: +v CDB-Man_
22:45:00 *** CDB-Man has quit IRC
23:31:09 *** arst_ has quit IRC