From: Bob Duff <bobduff@theworld.com>
Subject: Re: Strange error
Date: Fri, 23 Jan 2015 19:47:16 -0500
Date: 2015-01-23T19:47:16-05:00 [thread overview]
Message-ID: <87mw599f8r.fsf@adacore.com> (raw)
In-Reply-To: 3fa7d4c4-f9fe-4d00-9034-a348802087a9@googlegroups.com
Laurent <daemon2@internet.lu> writes:
> Quite obvious could have found that myself by thinking/searching a bit more.
>
> How do you professionals prevent such stupid errors? I am just a noob and
> playing a bit around so it has no impact on anything.
One way is to use Ada.Containers.Doubly_Linked_Lists. But that won't
work for you, because you're not trying to use doubly-linked lists,
you're trying to learn how to implement them. Which is something
programmers should know how to do.
So draw a doubly-linked list on paper, with circles and arrows.
Go through each procedure and "execute" it by hand, erasing the
arrows and drawing new ones. Take care to execute what you wrote,
not what you meant to write. Bugs like the one mentioned will
usually become obvious.
- Bob
next prev parent reply other threads:[~2015-01-24 0:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-22 21:46 Strange error Laurent
2015-01-23 7:45 ` Egil H H
2015-01-23 8:44 ` Laurent
2015-01-23 20:45 ` Laurent
2015-01-23 21:26 ` Randy Brukardt
2015-01-24 1:34 ` Bob Duff
2015-01-24 13:14 ` Brad Moore
2015-01-24 19:12 ` Laurent
2015-01-26 21:44 ` Randy Brukardt
2015-01-24 0:47 ` Bob Duff [this message]
2015-01-24 19:08 ` Laurent
2015-01-25 9:25 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox