Re: Additional Glib::RefPtr Safety Mechanism
- From: Rob Pearce <rob flitspace org uk>
- To: gtkmm-list gnome org
- Subject: Re: Additional Glib::RefPtr Safety Mechanism
- Date: Sat, 31 Aug 2019 18:10:08 +0100
On 31/08/2019 16:03, Karsten Pedersen wrote:
The biggest issue is that often many of them wouldn't experience any
catastrophic problems at all. They wouldn't even know anything was
wrong with their code. It is only when I would mark it and send their
binary through Valgrind it would light up like a Christmas tree!
Undefined behaviour is frustrating like that;)
True, but even the best hand-holding nanny-code won't catch all the
undefined behaviour - some of it is design rather than implementation -
so it would do them good to be left floundering with a program that just
misbehaves without warning, to teach them that they will, at some point,
hit a mysterious unfathomable problem that doesn't respond to simple
static or even run-time checks. Then you can teach them about core dumps
and why they're useful ;)
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]