RoelTyper - small fix

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

RoelTyper - small fix

Francisco Garau-2
TypeCollector class >> newForPlatform is making reference to a deprecated
method (Smalltalk version). Below is the fix.

Cheers,
Francisco

newForPlatform
 "Return either a VWTypeCollector or a SqueakTypeCollector, depending on the
platform used."

 | versionString |
 versionString _ SystemVersion current version.
 ('*Squeak*' match: versionString)  ifTrue: [^SqueakTypeCollector basicNew].
 ('*VisualWorks*' match: versionString)  ifTrue: [^VWTypeCollector
basicNew].
 ^self error: 'Unsupported Platform!'