History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-552
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Rodrigo B. de Oliveira
Reporter: Sorin Ionescu
Votes: 3
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Boo

Allow equality and inequality comparison between enums and integers

Created: 26/Oct/05 03:18 PM   Updated: 21/Nov/05 12:54 PM
Component/s: Compiler
Affects Version/s: 0.7.5
Fix Version/s: 0.7.5

Time Tracking:
Not Specified

Issue Links:
Related


 Description  « Hide
The following two lines are terrible:
return cast(int, peerInfo & PeerInfo.Connected) != 0
peerInfo &= cast(PeerInfo, ~cast(int, PeerInfo.Connected))

The proper way is:
return peerInfo & PeerInfo.Connected != 0
peerInfo &= ~PeerInfo.Connected

The second line issue is now being tracked as BOO-617.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.