Re: Boolean Variable Type

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hello Pete,

>Something I find really annoying... during my games and application
>programming I have always found I needed "flag" variables, just to hold
>On/off, True/false type data. However, using an integer type for this is a
>waste of memory... surely it is time we had a boolean variable type, called
>FLAG or something, that can only hold true or false, and would only be 1
>bit in size? It would improve the efficiency of euphoria programs in terms
>of memory.

I agree that this would be useful.
However, considdering the average processor speed and
memory available on PCs today, the memory problem is
hardly an issue. Also, considdering how little we (the programmers) know
about Euphoria's internal variable
storage system, this may not be all that efficient
either.
What would be nice is to have a boolean type that
doesn't require the overhead of a user defined type
(kinda like "integer"). But I don't really care if it
takes up 32 bytes of space or not.

later,
Lewis Townsend
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu