On 2/1/2013 19:24, Shao Miller wrote:
> On 2/1/2013 19:16, Shao Miller wrote:
>> On 2/1/2013 19:00, glen herrmannsfeldt wrote:
>>>
>>> How about sizeof(2**x) vs. (sizeof 2 * * x)?
>>>
>>
>> I'm so conditioned to C that I don't see the difference, but I can
>> imagine some language that has '**' as an exponent operator...?
>>
>
> Ooh, heheh. I missed your point of the parentheses. My mistake. Don't
> do that! 
>
(For some reason I thought you were emphasizing the spacing differences
of '**' and '* *' and I didn't read the parentheses at all. :S )
But I don't quite understand what the latter's "intuitive" expectation
might be... That 'sizeof' would process everything until the closing
bracket because an opener came before it? If so, could the same
argument be made for:
*(x + 2)
versus:
(* x + 2)
? Is the problem that 'sizeof' requires some separation from its
operand, unlike '*'?
--
- Shao Miller
--
"Thank you for the kind words; those are the kind of words I like to hear.
Cheerily," -- Richard Harter