>> -----Original Message----- >> From: Valnir [mailto:[EMAIL PROTECTED]
(SNIP) >> I need to take the "const" out of it so I can use qsort to sort the >> command table in memory. I just need to know from you guys what kind of >> headache I might be creating for myself. >--- Richard Lindsey <[EMAIL PROTECTED]> wrote: > I may be wrong here, but I believe the const portion of it just makes it > protected during runtime so that the structure itself can't be > altered... (SNIP) > But like I said at the beginning, I may be wrong here :D Richard is correct. The only potential disadvantage is that you might inadvertantly alter the table (or a record in it) by using assignment rather than comparison. As a const this would be disallowed by the compiler, but as a non const it's perfectly legal. Still it shouldn't be a problem if you are careful. Also on a completely unrelated topic.. Can we please start using proper quoting technique in our messages? Generally messages to the list are in top down format where only the relevant portions of previous messages are quoted, and they are quoted above your replies. It makes it much easier to read the context as you don't have to look at the bottom of a particular piece of mail to read the question before jumping up to the top to find the answer. It also solve the problem of signatures as generally email clients put sigs at the bottom of the email and if you include a quoted message at the bottem it becomes difficult to determine whos sig belongs to whom. Thanks, ~Kender -----BEGIN GEEK CODE BLOCK----- Version 3.12 GCS/IT/L/S/O d-(+) s++: a-(?) C++++$ UBLS++++$ P+++(--)$ L++++$ E--- W+$ N !o K? w(---) !O M- !V PS+ PE(-) Y+ PGP->+ t+ 5 X++ R(+) tv+@ b+(++) !DI+++ D G(-) e>+++ h---() r+++ y+++(++) ------END GEEK CODE BLOCK------ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- ROM mailing list [email protected] Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom

