Version
110.99.3 (Latest)
Operating System
OS Version
Processor
System Component
SML/NJ Library
Severity
Minor
Description
CharBuffer.addSlice ignores the substring's starting offset.
Transcript
- val buf = CharBuffer.new 0;
- val substr = Substring.extract ("foo", 1, NONE);
- Substring.string substr;
val it = "oo" : string
- val () = CharBuffer.addSlice (buf, substr);
- CharBuffer.contents buf;
val it = "fo" : string
Expected Behavior
- val buf = CharBuffer.new 0;
- val () = CharBuffer.addSlice (buf, Substring.extract ("foo", 1, NONE));
- CharBuffer.contents buf;
val it = "oo" : string
Steps to Reproduce
- val buf = CharBuffer.new 0;
- val () = CharBuffer.addSlice (buf, Substring.extract ("foo", 1, NONE));
- CharBuffer.contents buf;
val it = "fo" : string
Additional Information
The same issue occurs with CharBuffer.addArrSlice.
Email address
ssoss AT uchicago DOT edu
Version
110.99.3 (Latest)
Operating System
OS Version
Processor
System Component
SML/NJ Library
Severity
Minor
Description
CharBuffer.addSliceignores the substring's starting offset.Transcript
Expected Behavior
Steps to Reproduce
Additional Information
The same issue occurs with
CharBuffer.addArrSlice.Email address
ssoss AT uchicago DOT edu