Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!kaukau.comp.vuw.ac.nz!virtue!ccc_ldo From: ccc_ldo@waikato.ac.nz Newsgroups: comp.sys.mac.programmer Subject: Even more on MPW C 3.0 question Message-ID: <167.25e15b52@waikato.ac.nz> Date: 20 Feb 90 02:52:37 GMT References: <162.25dfe4b3@waikato.ac.nz> <10311@hoptoad.uucp> Lines: 23 In <10311@hoptoad.uucp>, tim@hoptoad.uucp (Tim Maroney) says that (Str255 *) is a "nonsense" type. Perhaps this is true. I'm ready to give up trying to find a better answer. But before I do so, here's a final twist on the example. First, the appropriate variable declarations: Str255 temps, *tempp; unsigned char ch; int i; Now the two example expressions: ch = temps[i]; ch = (*tempp)[i]; Both of these generate virtually identical code. The only difference, apart from the reference to different variables, is that in the first expression, the index is treated as a word, while in the second expression, the index is a longword.