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

Ralph Versteegen teeemcee at gmail.com
Mon Jun 18 11:01:19 PDT 2018


On 19 June 2018 at 05:59, Ralph Versteegen <teeemcee at 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 <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/93eb6ce8/attachment-0001.html>


More information about the Ohrrpgce mailing list