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

[#115] BinPrimIO writer method getPos doesn work under CML

Date:
2013-04-20 22:00
Priority:
3
State:
Closed
Submitted by:
Bug Submitter (webuser)
Assigned to:
Lars Bergstrom (larsberg)
Machine Architecture:
x86
Operating System:
Other
Component:
CML
Resolution:
None
Severity:
Minor
OS Version:
Windows 7
SML/NJ Version:
110.74
Keywords:
URL:
Transcript (of reproduction):
Source (for reproduction):
Summary:
BinPrimIO writer method getPos doesn work under CML

Detailed description
The BinPrimIO writer methods don update the position returned
by the getPos method under CML. So getPos () always returns 0
(or whatever the last position setPos was given).
Fix:
In win32-bin-prim-io.sml, change mkWriter so that the local
function write calls an incPos function, in much the same way
as readVec and readArr do in mkReader.


Submitted via web form by Karl Crary crary@cs.cmu.edu

Comments:

Message  ↓
Date: 2013-06-04 16:56
Sender: Lars Bergstrom

Fixed per suggestion in description.

Attached Files:

Changes

Field Old Value Date By
status_idOpen2013-06-04 16:56larsberg
close_date2013-06-04 16:562013-06-04 16:56larsberg
assigned_tojhr2013-06-03 16:18jhr
assigned_tonone2013-05-05 16:03jhr