[Pharo-project] RBScanner>>#initializeClassificationTable

Henrik Johansen henrik.s.johansen at veloxit.no
Thu Nov 25 11:12:59 CET 2010


On Nov 25, 2010, at 10:58 44AM, Benjamin wrote:

> Hello guys,
> 
> Is there a reason this method use :
> 
> 	(Scanner isLiteralSymbol: '_')
> 		ifTrue: [ self initializeChars: '_' to: #alphabetic ]
> 		ifFalse: [ self initializeChars: '_' to: #special ].
> 
> and not
> 
> 	(Scanner allowUnderscoreAsAssignment)
> 		ifTrue: [ self initializeChars: '_' to: #special ]
> 		ifFalse:[ self initializeChars: '_' to: #alphabetic ]
> 
> ?
> 
> 
> Cheers,
> 
> Ben

Compatibility I would guess.
In Squeak, allowUnderscoreAsAssignment is still a Preferences method.

Cheers,
Henry




More information about the Pharo-project mailing list