[Ohrrpgce] SVN: teeemcee/10425 Replace Door.bits() with Door.exists, for some wonderful cleanup

Ralph Versteegen teeemcee at gmail.com
Mon Jun 18 10:59:40 PDT 2018


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!

On 19 June 2018 at 05:04, James Paige <Bob at 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, <subversion at 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 at lists.motherhamster.org
>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>
>
>
> _______________________________________________
> Ohrrpgce mailing list
> ohrrpgce at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20180619/40fddb9a/attachment.html>


More information about the Ohrrpgce mailing list