Anonymous | Login | 12-15-2019 02:32 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0006764 | [Squeak] Kernel | minor | always | 11-12-07 21:47 | 04-18-10 22:05 | ||||
Reporter | nicolas cellier | View Status | public | ||||||
Assigned To | andreas | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.10 | ||||||
Summary | 0006764: Duration class>>#readFrom: does not like trailing characters | ||||||||
Description |
self should: (Duration readFrom: '0:00:00:00.001 ') nanoSeconds = 1000000. current answer is 1... To me, advantage of a Stream is to be able to decode up to irrelevant characters, and leave stream positionned for a next read... That's my understanding of readFrom: At least, i would expect a reading Error (or nil with a preference for Error) rather than a ... surprising result. |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
![]() |
|
(0013294 - 147 - 147 - 147 - 147 - 147 - 147) tfel 09-02-09 09:12 |
I uploaded a fix for that to the inbox (Kernel-tfel.236). It reads up to the spac, leaves the Stream at that position and yields the proper result. |
(0013295 - 106 - 124 - 428 - 428 - 428 - 428) andreas 09-03-09 03:01 edited on: 09-03-09 04:02 |
http://source.squeak.org/trunk/Kernel-tfel.236.mcz [^] http://source.squeak.org/trunk/KernelTests-ar.90.mcz [^] |
Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
47 total queries executed. 36 unique queries executed. |