On 12/9/09 11:22 PM, Leif Hedstrom wrote:
>>> * From the example, it seems like '*' is associated with the variable
>>> and not the type, i.e., 'char *arg' and not 'char* arg'. Can we state
>>> this explicitly and also clarify whether this applies to references
>>> also?
>>>      
>> I prefer char* s, but as it currently stands the code has a lot more
>> char *s
>>    
> 
> I prefer char* too, +1 on that as the standard notation from me, going
> forward at least (we can then decide either if we want to "fix" all
> existing code, or just fix as we work on it).

Uh, isn't the '*' actually associated with the variable?  If "char*"
were a type, then:

char* a, b, c;

Are "b" and "c" the same "char*" type?  Not according to the rules.
They are "char" type.

char *a, *b, *c;

Now, what type are "b" and "c"?  Would you rather see:

char* a, *b, *c;


-- 
Dossy Shiobara              | do...@panoptic.com | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)

Reply via email to