This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: typo in comment


>> But should it be (2**(8n))-1 or 2**(8n-1) ?  Hard to tell with just
>> 2**(8n)-1 (I never rely on pedantry).
>
> If you can show me any infix language where subtraction binds more
> tightly than exponentiation, I will add those parens.

Er, well, actually...  especially since the multiplication operator is
elided like a mathematician would do...

I tend to read `**' as `superscript' and since `-' is narrower than `**' it
looks like
		  (8n)-1
		2

But `2**8n - 1' would look like the other one.

    John   "pedants 'r' us  :-)  :-)"
           "especially since the original `2**(8n))-1' is also only one
            character away from `(2**(8n))-1'"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]