Index: Core/Utilities/Id.st =================================================================== --- Core/Utilities/Id.st (revision 1402) +++ Core/Utilities/Id.st (working copy) @@ -4,21 +4,37 @@ - Id class >> defaultSize [ - - ^32 - ] + Id class [ - Id class >> new [ - - ^self new: self defaultSize - ] + | table | - Id class >> new: anInteger [ - - ^(self basicNew: anInteger) - initialize; - yourself + defaultSize [ + + ^32 + ] + + new [ + + ^self new: self defaultSize + ] + + new: anInteger [ + + ^(self basicNew: anInteger) + initialize; + yourself + ] + + table [ + + ^ table ifNil: [ table := self defaultTable ] + ] + + defaultTable [ + + ^($a to: $z) , ($0 to: $9) , (Array with: $_ with: $-) + ] + ] initialize [ @@ -31,7 +47,7 @@ table [ - ^($a to: $z) , ($0 to: $9) , (Array with: $_ with: $-) + ^ self class table ] printOn: aStream [