Just a sample of the Echomail archive
Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.
|    MYSTIC    |    Mystic support echo    |    16,010 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 14,238 of 16,010    |
|    LEE WESTLAKE to g00r00    |
|    Re: MPL Bitwise Operators    |
|    13 Jan 22 23:35:48    |
   
   TID: Mystic BBS 1.12 A46   
   MSGID: 2:250/6 31d3234d   
   REPLY: 1:129/215 2f5c03c6   
   TZUTC: 0000   
    g0> MPL is supposed to support your typical bitwise operators (keywords   
    g0> and/or/xor/shl/shr) but clearly something is not working.   
      
   I certainly miss them when they're not there, but an arithmetic solution   
   proved just as good.   
      
    g0> There are also three functions that allow you to check, set, and toggle   
    g0> bits in any integer type that MPL supports which can be used for now   
    g0> until I figure out what happened.   
    g0>    
    g0> This is in a WHATSNEW from way back in 2011 (The number you pass is the   
    g0> actual bit you want to check, set or toggle ie 1-32)   
    g0>    
    g0> + New MPL function "BitCheck" accepts a bit position and checks it   
    g0> against an integer, returning true or false if the bit is on. So for   
    g0> example in the Records, the third bit in UserFlags is UserDeleted:   
    g0>    
    g0> GetThisUser   
    g0> If BitCheck(3, UserFlags) Then WriteLn('User is marked deleted');   
    g0>    
    g0> Note that this was implemented before actual bitwise math, which also   
    g0> made it into this version. Keep reading! :)   
    g0>    
    g0> + New MPL function "BitToggle" accepts a bit position and an integer and   
    g0> toggles the bit.   
    g0>    
    g0> GetThisUser   
    g0> BitToggle(3, UserFlags); // undeletes if they are deleted or   
    g0> deletes if // they are not deleted.   
    g0>    
    g0> + New MPL function "BitSet" accepts a bit position and an integer and   
    g0> sets the bit ON/OFF based on a boolean:   
    g0>    
    g0> GetThisUser   
    g0> BitSet(3, UserFlags, True); // user is marked as deleted   
       
   Thanks g00r00, I appreciate the additional information.   
      
    o-----------o------------o-------------------------o   
    TALIADON | 2:250/6 | 21:3/138 | TALIADON-BBS@MAIL.COM |   
   o-----------o-----------o------------o-------------------------o   
   | "Error is a great teacher, and humility its hardest lesson." |   
   o--------------------------------------------------------------o   
      
   --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)   
    * Origin: TALIADON BBS (2:250/6)   
   SEEN-BY: 1/120 123 15/0 18/0 25/0 21 90/1 105/81 106/201 116/116 120/340   
   SEEN-BY: 123/0 25 40 115 131 180 190 200 755 129/305 135/300 138/146   
   SEEN-BY: 153/250 7715 154/10 222/2 226/30 227/114 229/110 307 424   
   SEEN-BY: 229/426 428 452 550 664 700 6502 240/1120 5832 249/206 317   
   SEEN-BY: 249/400 250/0 1 2 3 4 5 6 7 8 9 10 21 263/0 266/512 275/100   
   SEEN-BY: 282/1038 292/854 299/6 300/4 301/1 317/3 320/219 322/757   
   SEEN-BY: 342/11 200 396/45 633/280 640/1321 712/848 3634/0 12 15 27   
   SEEN-BY: 3634/50 119   
   PATH: 250/6 1 3634/12 153/7715 229/426   
      
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca