Allow a line to start with (
Posted: Sat Aug 06, 2011 6:27 am
This compiles without problems:
Is there a reason why this shouldn't compile too?
I ask because >> takes precedence over | in the order of operations and there are times when I need to override this using brackets. All of which is fine until I try to put (n|32)>>1 in a macro which might need to serve as input to another macro. By itself it won't compile and I can't use n=(n|32)>>1 because that will change the value of n in the resulting formula. See the difficulty? This shows why it's a problem:
Surely macros would be much more flexible if you could begin a line with brackets. I'm currently working on some SHA2 implementations and there's some pretty fancy bitshifting involved. If this worked it would simplify things a lot. Thanks for listening!
Also, if anyone knows how I can overcome this without the feature request (which could take some time if ever) please, post in here
There are some pretty skilled macro masters lurking around here. Unfortunately, I'm not one of them.
Code: Select all
n|32>>1
Code: Select all
(n|32)>>1
Code: Select all
n=4
Debug (n|32)>>1
Debug n|32>>1
Also, if anyone knows how I can overcome this without the feature request (which could take some time if ever) please, post in here
