| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

311-KernelExtensions

Page history last edited by keith_hodges 15 years, 6 months ago

Kernel Extensions

 

Kernel Extensions adds some new methods to core classes in Squeak. It should be safe to install on any 3.7 or later image, as it only adds methods.

 

Download it on SqueakSource, or do:

"Squeak-dev's Kernel-Extensions has lots of things removed, so ignore it"

(MCPackage named: 'Kernel-Extensions') workingCopy unregister.

Installer mantis ensureFix: '7166 speedup allSelectors and add allSelectorsBelow:'.

Installer mantis ensureFix: '7217 explorer to work on ProtoObjects'.

Installer ss project:'311'; install: 'Kernel-Extensions'.

 

New features:

  • classes that can safely discard some cached stuff should implement FreeSomeSpace to be called
  • Null object
  • Null Logging framework
  • << on Stream
  • split/join

 

Demo of some new features

"clean up an image, rather than write your own cleanup script"

SmalltalkImage current freeSpace.

'ab cdef g' splitOn: ' '. "an OrderedCollection('ab' 'cdef' 'g')"

'ab cdef g' splitOn: [:ea | ea isSeperator]. "an OrderedCollection('ab' 'cdef' 'g')"

Comments (0)

You don't have permission to comment on this page.