RoelTyper - small fix

Francisco Garau francisco.garau at gmail.com
Tue Apr 4 23:14:12 UTC 2006


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!'




More information about the Squeak-dev mailing list