[gtkada] gtk.text to string
Pedro Díaz Jiménez
pdiaz88 at terra.es
Mon Aug 20 00:22:46 CEST 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 19 August 2001 06:42, Jeffrey Carter wrote:
> Pedro Díaz Jiménez wrote:
> > True, but doing it (right) with pointers doesn't mean its wrong
>
> It's not the use of pointers that I said was wrong, but the claim that
> you NEED to use pointers. However, pointers introduce a collection of
Ok, I didn't got it
> possible errors that are not possible without pointers; therefore, I
> prefer to avoid pointers whenever possible.
Good for you. I'll still use pointer based linked lists, trees, heaps, etc...
>
> Of course, you would never make such errors. I'm sure you never make any
> errors. During its 20-year lifetime, though, your software will be
> modified many times by others, and Murphy assures us that they will make
> any errors that can possibly be made. This means it is prudent to make
> the set of possible errors as small as possible. To that end, even you
> should avoid pointers whenever possible.
This conversation has gone to the point of considering pointers kinda like
the tool of Satan or something. Look: we are not talking about goto
statements, inline assembler or some other black magic. Pointers are useful
tools of programming languajes that have been somewhat demonised. Sure, I've
made mistakes (replying to your mail could be just another one). But well
used pointers are not proner to errors that any other programming tool. And
let me append that well used pointers are not harder to debug
The pointer examples of this thread are not good uses of pointers because an
easier & more elegant solution (yours) was proposed. Good for you. Thanks. I
don't master Ada, nor I try to pretend it, and I appreciate learning new
things. But there is a long way from that to saying that pointers are evil.
In my opinion, people who say that had very bad experiences with pointers
while learning them or have not worked enough with pointers to understand them
In my opinion, a "There is a better solution" mail would be enough. Your
"Sure you are perfect, but son, I'll teach you some things about real world"
sarcasm is in excess
"-It's 5.50 AM. Do you know where your stack pointer is?"
"-No, and my program doesn't, ether!"
:-)
Cheers
Pedro
- --
/*
* Pedro Diaz Jimenez: pdiaz88 at terra.es, pdiaz at acm.asoc.fi.upm.es
*
* GPG KeyID: E118C651
* Fingerprint: 1FD9 163B 649C DDDC 422D 5E82 9EEE 777D E118 C65
*
* http://planetcluster.org
* Clustering & H.P.C. news and documentation
*
* "La sabiduria me persigue, pero yo soy mas rapido"
*/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7gDw2nu53feEYxlERAsZqAJ0dHQwfnsIz6SR2mYPwtxR+MX0u6wCeOJpj
3Tk8UbEw46T9zEiVtp8AXbI=
=S9eE
-----END PGP SIGNATURE-----
More information about the gtkada
mailing list