Home My Page Projects Code Snippets Project Openings SML/NJ Bugs
Summary Activity Tracker Lists

[#205] Vector pattern causes integer variables to be printed as abstract types

Date:
2018-05-19 14:53
Priority:
3
State:
Open
Submitted by:
John Reppy (jhr)
Assigned to:
David MacQueen (dbm)
Machine Architecture:
All
Operating System:
All
Component:
Compiler
Resolution:
Accepted As Bug
Severity:
Minor
OS Version:
SML/NJ Version:
110.82
Keywords:
pretty-printing
URL:
Transcript (of reproduction):
Standard ML of New Jersey v110.82 [built: Sat Oct 14 13:08:58 2017] - val v = #[1, 2, 3]; val v = #[1,2,3] : int vector - val #[a, b, c] = v; stdIn:2.5-2.19 Warning: binding not exhaustive #[a,b,c] = ... val a = 1 : int val b = - : int val c = - : int
Source (for reproduction):
val v = #[1, 2, 3]; val #[a, b, c] = v;
Summary:
Vector pattern causes integer variables to be printed as abstract types

Detailed description
For some reason, the values of b and c are being printed as "-" (i.e., an abstract value), instead of as "2" and "3" (resp).

Comments:

No Comments Have Been Posted

Attached Files:

Changes

No Changes Have Been Made to This Item