Re: Declaration to get 8-bit (or 16-bit) integer?
- From: Clive Page <junk@xxxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 21:25:22 +0000
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
.
- References:
- Declaration to get 8-bit (or 16-bit) integer?
- From: Clive Page
- Re: Declaration to get 8-bit (or 16-bit) integer?
- From: Terence
- Re: Declaration to get 8-bit (or 16-bit) integer?
- From: Richard E Maine
- Re: Declaration to get 8-bit (or 16-bit) integer?
- From: glen herrmannsfeldt
- Re: Declaration to get 8-bit (or 16-bit) integer?
- From: Richard Maine
- Re: Declaration to get 8-bit (or 16-bit) integer?
- From: Gordon Sande
- Re: Declaration to get 8-bit (or 16-bit) integer?
- From: Clive Page
- Re: Declaration to get 8-bit (or 16-bit) integer?
- From: Paul van Delst
- Re: Declaration to get 8-bit (or 16-bit) integer?
- From: Clive Page
- Re: Declaration to get 8-bit (or 16-bit) integer?
- From: Paul van Delst
- Declaration to get 8-bit (or 16-bit) integer?
- Prev by Date: Re: Question about out-of-bounds warning
- Next by Date: Re: Memory usage f95...
- Previous by thread: Re: Declaration to get 8-bit (or 16-bit) integer?
- Next by thread: Re: Declaration to get 8-bit (or 16-bit) integer?
- Index(es):