Re: Declaration to get 8-bit (or 16-bit) integer?



Yeah, I was just pulling yer proverbial about that. But, wouldn't an array of integer(byte) achieve the same purpose? Depending on how you name your mask array, values of true/false or 0/1 can be ambiguous either way. But parameters would solve that:

A C programmer would agree with you that logicals (booleans) are just a fancy kind of integer. I'm not sure I agree in terms of usability.

But you are right in practice since often one wants a small collection of flags per pixel (or whatever) which fit in a byte nicely, whereas a logical has only a single bit of usefulness.

Regards

--
Clive Page
.