Toot

Written by The FreeDOS Project on 2025-01-17 at 07:23

I wrote an article last week about using bit fields and masks to store values in just one variable, like a chess piece and its color.

This week, I've updated the program to use enum to solve the same problem. The code is much easier to read:

https://www.both.org/?p=9244

Using enum is another method to keep handy.

=> More informations about this toot | View the thread | More toots from freedosproject@fosstodon.org

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113842496030940388
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
198.842157 milliseconds
Gemini-to-HTML Time
0.279898 milliseconds

This content has been proxied by September (ba2dc).