Author Topic: Any interest in IWD tutu?  (Read 42100 times)

Offline FredSRichardson

  • Planewalker
  • *****
  • Posts: 190
  • Gender: Male
Re: Any interest in IWD tutu?
« Reply #125 on: January 10, 2006, 10:55:51 AM »
Thank you for that pointer to your analysis of the IWD style Bit operators Sim!

I guess I can see why the designers wanted bit fields.  If they use 4 bytes for storing a regular global variable, then in principle you can store 32 boolean flags in one variable if you implement bit field operators (which is a big reduction in memory allocation if you need a lot of boolean flags).

I'm going to browse more of IWD1, but it looks like they use these flags all over the place to implement this type of thing (parden my C/Perl syntax):

if (!FlagSet(SomeFlag)) {


With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: