Anonymous | Login | 04-12-2021 14:50 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 | ||||
0007362 | [Squeak] Morphic | minor | always | 07-06-09 20:53 | 04-18-10 22:04 | ||||
Reporter | sig | View Status | public | ||||||
Assigned To | nicolas cellier | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.10 | ||||||
Summary | 0007362: Text>>copyFrom:to: prevents using a subclasses | ||||||||
Description |
In one of my experiments, i tried to subclass a Text by own subclass, and i found that when i trying to pass its instance to a Workspace, the workspace morph instead of operating with my intance of Text subclass, unexpectably uses the instance of Text , which seems appeared out of nowhere. The root of all evil is in Text>>copyFrom:to: copyFrom: start to: stop "Answer a copied subrange of the receiver." | realStart realStop | stop > self size ifTrue: [realStop _ self size] "handle selection at end of string" ifFalse: [realStop _ stop]. start < 1 ifTrue: [realStart _ 1] "handle selection before start of string" ifFalse: [realStart _ start]. >>> ^Text string: (string copyFrom: realStart to: realStop) runs: (runs copyFrom: realStart to: realStop) after replacing 'Text' with 'self class' , everything works perfectly. |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
![]() |
|
(0013367 - 66 - 78 - 238 - 238 - 238 - 238) nicolas cellier 10-19-09 10:33 edited on: 10-19-09 10:33 |
Fixed in http://source.squeak.org/trunk/Collections-nice.167.mcz [^] |
Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
41 total queries executed. 32 unique queries executed. |