On Wednesday, June 29, 2016 at 2:59:01 PM UTC+3,
krishna...@ccreweb.org wrote:
> Personally, I prefer that all words dealing with unsigned double
> argument(s) (or "double unsigneds" ?) start with the prefix, "UD",
> rather than with "DU". This seems more natural to me, but it is just
> my bias, probably rooted in experience with C: A data type of
> "unsigned double" is like "unsigned long long" in C,
> while "double unsigned" is less familiar.
For consistency we should look below the surface
and don't take into account how it can be translated into C:
"double unsigned" or "unsigned double".
By history reasons and conventions in Forth, one words family can be based
(in terms of naming) on another words family via using some prefix
for their names.
Particularly, single unsigned number words family is based on single signed
number words family via prefix 'U' (e.g. 'U<' from '<').
In the same way double number words family is based on single number words
family via prefix 'D'. Namely, double-signed-number words family is based
on single-signed-number words family e.g.
'D<' from '<'
But further we have two options.
1. Double-unsigned-number words family is based on single-unsigned-number
words family. And we get the final prefix 'DU' e.g.
'DU<' from 'U<'
And consequently:
'D0<' from '0<' (particular double from particular single)
2. Double-unsigned-number words family is based on double-signed-number
words family. And we get the final prefix 'UD' e.g.
'UD<' from 'D<'
And consequently:
'0D<' from 'D<' (particular double from basic double)
So to be consistent, we should take into account not only double unsigned number words family, but the whole double number words family, and use the same rule for all the names.
I prefer the first reasoning, and 'DU<', 'D0<', etc. form of the names.
--
Ruvim