Mercury Bugs - mercury | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000296 | mercury | Bug | public | 2013-07-31 12:58 | 2014-10-05 17:33 |
Reporter | wangp | ||||
---|---|---|---|---|---|
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000296: ui mode and multiple clauses | ||||
Description | from Michael: This code triggers a mode error: :- mode get_text_content0(in, out, ui) is det. get_text_content0([], [], _IO). get_text_content0([Node|Nodes], [Text|Texts], IO) :- get_text_content_from_node(Node, Text, IO), % <-- error here for IO get_text_content0(Nodes, Texts, IO). However if I write the switch explicitly, it's fine: get_text_content0(Nodes, Texts, IO) :- ( Nodes = [], Texts = [] ; Nodes = [Node|Nodes0], get_text_content_from_node(Node, Text, IO), get_text_content0(Nodes0, Texts0, IO), Texts = [Text|Texts0] ). | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files |
Notes | |||||
|
|||||
|
|
Issue History | |||||
Date Modified | Username | Field | Change | ||
---|---|---|---|---|---|
2013-07-31 12:58 | wangp | New Issue | |||
2014-10-05 17:33 | mark | Note Added: 0000791 |