The FreeDOS Project on Nostr: I wrote an article last week about using bit fields and masks to store values in just ...
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=9244Using enum is another method to keep handy.
Published at
2025-01-17 07:23:52Event JSON
{
"id": "4541dc5e99586c257ba10ec70ed8eb14505df64e7757f48cc9b9ac44f72589a5",
"pubkey": "1ea74f7f71ca27c1d7cb5293913ce178c1c592e6280b9fec08a59c86db0328c7",
"created_at": 1737098632,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/users/freedosproject/statuses/113842495951607282",
"activitypub"
]
],
"content": "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. \n\nThis week, I've updated the program to use enum to solve the same problem. The code is much easier to read:\n\nhttps://www.both.org/?p=9244\n\nUsing enum is another method to keep handy.",
"sig": "9d6efc9c74d14a3c3119dae0d9455a933695091196d2c47c344fae00f6f3dc4ec3026b41d10a7e04b7e8c1023c451d5ee259bd77c46d4ffcbe45dde781f7422b"
}