Mercury Bugs - mercury | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000231 | mercury | Bug | public | 2011-11-22 16:30 | 2014-10-09 12:48 |
Reporter | colanderman | ||||
---|---|---|---|---|---|
Assigned To | |||||
Priority | normal | Severity | trivial | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000231: No way to specify instantiatedness of char type | ||||
Description | There is currently no way to specify the instantiatedness of a char type, e.g.: :- inst whitespace ---> ' '; '\t'; '\n'. The above instantiatednesses are represented as atoms, but since instantiatednesses of character values are internally represented as type char_const(), this leads to mode errors such as: Final instantiatedness of `HeadVar__1' was `bound('\t' ; '\n' ; ' ')', expected final instantiatedness was `bound('\t' ; '\n' ; ' ')'. Attached is a patch which fixes this bug. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | char_inst.m (222) 2011-11-22 16:30 https://bugs.mercurylang.org/file_download.php?file_id=138&type=bug mercury-compiler-char-inst.patch (1,974) 2011-11-22 16:31 https://bugs.mercurylang.org/file_download.php?file_id=139&type=bug |
Notes | |||||
|
|||||
|
|
Issue History | |||||
Date Modified | Username | Field | Change | ||
---|---|---|---|---|---|
2011-11-22 16:30 | colanderman | New Issue | |||
2011-11-22 16:30 | colanderman | File Added: char_inst.m | |||
2011-11-22 16:31 | colanderman | File Added: mercury-compiler-char-inst.patch | |||
2014-10-09 12:48 | wangp | Note Added: 0000795 |