TIP: Click on subject to list as thread! ANSI
echo: cis.tandy.coco
to: Bob van der Poel 76510,2203
from: Bob van der Poel 76510,2203
date: 1990-05-11 01:07:43
subject: #3413-#C arrays

#: 3414 S10/Tandy CoCo
    11-May-90  01:07:43
Sb: #3413-#C arrays
Fm: Bob van der Poel 76510,2203
To: Bob van der Poel 76510,2203

 (cont) 5. Certainly no reason to defend the fellows we just said the nice
thing about. Despite Mark's comments, there is a bug in the complier when it
comes to passing multi-dimed arrays to functions. Yes, there is a simple
work-around--and there is no shame in that. But let's not get too defensive
stating the "there is no bug" argument. The bottom line is that K&R state 4
methods to pass a multi-dimed array to a function and with the MW complier only
1 of these works. I agree with Mark that this method is probably the best since
it clearly shows the relationship between pointers and arrays, but from a
strict programming viewpoint it is NOT the clearest.

6. Bruce's comments on the problem using arrays of more than 2 dimensions are,
again, something very important. I don't ever recall using one; my little mind
has trouble enough with 2-dimed arrays...let alone 3 or 4! Again, Bruce has
shown an elegant workaround.

7. Just how many versions of the CGFX library are there? I just read a bit
about a bug in _ss_mgpb() in Puckett's July/89 column (pg. 141). However, a
rdump of my package fails to show the routine. Also, my version has "BlnkOn"
instead of "BlnkOn". Is there an update? How does one get it?

8. Speaking of the cgfx library: Should one use the text commands like Clear(),
CurXY(), etc. in an actual program, or would it be better to have a call to
cls(), and gotxy() in the program and have these in turn call the library
routines. Guess I'm wondering which method would be more protable, etc. Which
method do you fellows use?

9. How about someone compliling all the know bugs (or perhaps we should call
them "undocumented features" so that no one's feelings get hurt?) and posting
them? Yeah, I know . . . time, time, time.

Okay, that's about it for now. Maybe next week I can come up with another
"innocent question."

There are 3 Replies.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.