On 19 June 2018 at 05:59, Ralph Versteegen <teeem...@gmail.com> wrote:
> I admit, I am guilty of trying to squeeze bits into a smaller space by > using bitfields (a feature that feels archaic even in C, anachronistically > supported by FB) in Frame and sometimes I give them serious consideration > elsewhere (Slices?). But they're bad because bits take the value 0/1 > instead of 0/-1. > Hmm, come to think of it, I could probably define bool as a byte rather > than an integer, for space savings, without changing any semantics! > Oh, or just use FB's boolean type, which IIRC is one byte in size and takes values 0 and -1. > > On 19 June 2018 at 05:04, James Paige <b...@hamsterrepublic.com> wrote: > >> Amen to that! >> >> readbits was a wonderful feature in the DOS days when that 640k ceiling >> was weighing down on me... not so much now when an array of bool bits is so >> much easier :) >> >> On Mon, Jun 18, 2018 at 9:51 AM, <subvers...@hamsterrepublic.com> wrote: >> >>> teeemcee >>> 2018-06-18 09:51:51 -0700 (Mon, 18 Jun 2018) >>> 129 >>> Replace Door.bits() with Door.exists, for some wonderful cleanup >>> >>> You know what, let's never use readbit/setbit whenever possible >>> --- >>> U wip/game.bas >>> U wip/loading.rbas >>> U wip/mapsubs.bas >>> U wip/scriptcommands.bas >>> U wip/udts.bi >>> _______________________________________________ >>> Ohrrpgce mailing list >>> ohrrpgce@lists.motherhamster.org >>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org >>> >> >> >> _______________________________________________ >> Ohrrpgce mailing list >> ohrrpgce@lists.motherhamster.org >> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org >> >> >
_______________________________________________ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org