Modify

#2028 closed Feature Request (Rejected)

Bit* function examples are too cryptic to be meaningful

Reported by: anonymous Owned by:
Milestone: Component: Documentation
Version: Severity: None
Keywords: Cc:

Description

The examples for BitOR, BitAnd, Bit* are very hard to comprehend for us non mathematicians/programers; they do not provide very good example use.

Attachments (0)

Change History (4)

comment:1 by anonymous, on Oct 8, 2011 at 9:24:53 PM

Useable examples:

; BitAnd
Local $x = 8
If BitAND($x, 8)=8 Then MsgBox(0, '', '$x contains 8')


; BitOr
Local $x = BitOR(1,4,8) ; add
If BitAND($x, 8)=8 Then MsgBox(0, '', '$x contains 8')


;BitXor
Local $x = BitOR(1,4,8)
MsgBox(0, 'before',  $x)
$x = BitXOR($x,8) ;remove 8
MsgBox(0, 'after', $x)

;etc etc..

comment:2 by TicketCleanup, on Oct 9, 2011 at 12:00:01 AM

Version: 3.3.6.1

Automatic ticket cleanup.

comment:3 by Valik, on Oct 9, 2011 at 2:15:54 AM

Resolution: Rejected
Status: newclosed

Honestly, if you need examples to show you how to use the Bit functions then you probably don't need the Bit functions. The examples are fine. Looking at raw bits is an advanced feature anyway.

comment:4 by anonymous, on Oct 9, 2011 at 4:05:46 PM

That answer is unacceptable.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.