Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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, 14 years ago

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, 14 years ago

Version: 3.3.6.1

Automatic ticket cleanup.

comment:3 by Valik, 14 years ago

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, 14 years ago

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.