Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 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 Changed 10 years ago by anonymous

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 Changed 10 years ago by TicketCleanup

  • Version 3.3.6.1 deleted

Automatic ticket cleanup.

comment:3 Changed 10 years ago by Valik

  • Resolution set to Rejected
  • Status changed from new to closed

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 Changed 10 years ago by anonymous

That answer is unacceptable.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.