Elektrine lite

← Feed

@mdiluz@mastodon.gamedev.place

Post #2520224

2026-03-13 11:12 UTC

Context: https://learn.microsoft.com/en-us/dotnet/api/microsoft.office.core.msotristate Note that there are actually 5 values, not three. Also True is -1, and the value that equals 1 isn't supported.

Replies (11)

  • I just need a third reply here to say how much I appreciate the sheer simplicity and insanity of this documentation page - almost every single word provided ask more questions than it answers

    Open ##2520225

  • @astrashe@mas.to 2026-03-13 11:32

    @mdiluz@mastodon.gamedev.place My gateway into AI was using Claude to try to figure out MS's XML configuration files for their now deprecated Azure B2C identity provider. Their documentation is really bad. https://claude.ai/share/97c73874-6981-4ebc-b473-19f5bdddd1bd

    Open ##2520229

  • @mdiluz@mastodon.gamedev.place there's only two "supported" values so how is this even a tristate boolean

    Open ##2520236

  • @neko@aus.social 2026-03-13 12:12

    @mdiluz@mastodon.gamedev.place "Look closer. I think you'll find that there are 5 values."

    Open ##2520237

  • @DJGummikuh@mastodon.social 2026-03-13 12:14

    @mdiluz@mastodon.gamedev.place what the fuck did I just read? The more often I look at the linked table the more I feel my brain melt 🤣

    Open ##2520238

  • Ah. MS Office. That makes more sense now.

    Open ##2520239

  • It's really quite simple. There are three states: true, false and .. unsupported. This removes the need for a rational number representation to express things about Microsoft Office that are not entirely true, and nor are they entirely false.

    Open ##2520240

  • @steve@discuss.systems 2026-03-13 12:31

    @mdiluz@mastodon.gamedev.place Hot take: True being –1 is the only good decision they made with that type.

    Open ##2520241

  • @mikee@social.lol 2026-03-13 14:54

    @mdiluz@mastodon.gamedev.place looking at the table of fields, my hand moved to turn my phone upside down as that just felt like the correct way of reading it…

    Open ##2520243

  • @smol_entity@cubhub.social 2026-03-13 15:42

    @mdiluz@mastodon.gamedev.place I like how it is a tristate boolean, with 5 values, 3 of which are not supported, so in the end it is still just true and false (which is not a tristate, but at least it's boolean)

    Open ##2520244

  • @yomimono@wandering.shop 2026-03-13 19:11

    @mdiluz@mastodon.gamedev.place HISS

    Open ##2520246