[Oberon] Use of DIV and MOD for bit manipulation
Srinivas Nayak
sinu.nayak2001 at gmail.com
Sat Jul 9 15:20:06 CEST 2016
Dear All,
While reading compiler code(OBG.Mod.txt),
I see that in many places we have used DIV, MOD, multiplication etc.
No doubt, one can argue that, we want to do a mathematical operation there,
but to be honest, the interest there is not to do a mathematical operation;
rather to do some bit manipulation.
And, since we know that DIV and MOD can help us there, we employ them.
How shall we justify it (to obscure the natural meaning)?
Isn't the code clarity being compromised there?
I would like to know, how Oberoners think about it...
With thanks and best regards,
Yours sincerely,
Srinivas Nayak
Home: http://www.mathmeth.com/sn/
Blog: http://srinivas-nayak.blogspot.in/
More information about the Oberon
mailing list