Overview
| Artifact ID: | 44e55da4fb8c7dd96a227ad43559d57185dd4d78 |
|---|---|
| Ticket: | 218316ffffffffffffffffffffffffffffffffff
switch statement does not support binary pattern matching |
| User & Date: | nobody on 2000-10-26 00:56:03 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 3765 Bug Version: 8.0p2 SubmitDate: '1999-12-03' LastModified: '1999-12-03' Severity: CRIT Status: Closed Submitter: techsupp ChangedBy: hobbs OS: Other OSVersion: Lynx OS 3.0.0 (4/6/98) Machine: ION Networks FixedDate: '2000-10-25' ClosedDate: '1999-12-03' Name: Rajesh Raghavan Extensions: ION Networks "NetworX" API CustomShell: none ReproducibleScript: set textPort [portOpen TELNET1%1] set cdc [portOpen HOST1] set cd9000 [portOpen HOST2] set syncString [binary format H12 010000002627] set syncStringTail [binary format H6 002627] set alarmPollTail [binary format H8 01000505] set head_zero [binary format H6 010000] set head_three [binary format H6 010300] while {$sync == "TRUE" } { set cdcHead [multiRead $cdc 3 10 $textPort] OutputLine $textPort "Scanning cdcHead" binary scan $cdcHead H6 headhex OutputLine $textPort "cdcHead = $headhex: Making decision" switch -exact -- $cdcHead { $head_zero { OutputLine $textPort "head_zero: readTail CDC. Length unknown" set cdcData [readTail $cdc $textPort] OutputLine $textPort "Processing CDC Data" ... } } $head_three { OutputLine $textPort "head_three: readTail CDC" set cdcData [readTail $cdc $textPort] OutputLine $textPort "head_three: readAll CD9000" set cd9K_Data [readAll $cd9000 $textPort] } default { OutputLine $textPort "Lost synchronization" set sync FALSE } } ObservedBehavior: The switch statement always goes to the default case, even when $cdcHead is verified to be the same as $head_zero or $head_three Syntax of some extensions/procedures: multiRead <port> <bytes to be read> <timeout> <debug port> DesiredBehavior: Continued execution of the program, as opposed to repetition of synchronization loop. The user needs to upgrade to 8.2+. -- 12/03/1999 hobbs - foundin changed to: "obsolete: 8.0p2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
switch statement does not support binary pattern matching
- type changed to: "Bug"