Sujet : Re: comments, The joy of FORTRAN
De : bowman (at) *nospam* montana.com (rbowman)
Groupes : alt.folklore.computers comp.os.linux.miscDate : 04. Mar 2025, 08:38:41
Autres entêtes
Message-ID : <m2np01Fap9pU5@mid.individual.net>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Pan/0.160 (Toresk; )
On Mon, 3 Mar 2025 22:58:10 -0500, c186282 wrote:
But you DID have to increment by 'n' fields every time. In 'C' it was
easy to do bit-fields ... so many bits for each kind of data. That
made it even more imperative to keep exact track. Hey, memory used to
be small .... so you PACKED IT IN - no 32 bits to hold 1,2 or 3
Decimal vals ... just mult by 10 or 100 and int().
Ah, bit fields.. We managed to mix and match. In one context
1 -- law enforcement
2 -- fire
3 -- ems
4 -- animal control
but internally it was really
0b0001 -- law enforcement
0b0010 -- fire
0b0100 -- ems
0b1000 -- animal control
so if you wanted to configure an incident code to involve both law and
animal control it was 9. Try explaining that to the support people.