Re: Boolean Variable Type
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Feb 17, 2000
- 546 views
Hello, > >But I don't really care if it > >takes up 32 bytes of space or not. > >I think would really concern me if it took up 32 bytes of space... unless >you meant to say 32 bits (4 bytes). 8^) Oops, yes, I meant bits @@ <-- me rolling eyes >But I'd have to agree that the memory 'wasted' on storing flags in an >integer is trivial these days. And I would bet that there would be a >performance hit from the need to (internally) mask a bit to determine a >boolean value. > >-- Brian Wouldn't the space needed to store the memory address of the bool have to be a 32 bit value anyway? I considdered offering a solution in which you would peek and poke to memory to store and retrieve boolean values. I then realized that the memory address would still have to be stored in a value much greater than one bit in size. :) later, Lewis Townsend ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com