[squeak-dev] Selectors with underscores
Torsten Bergmann
astares at gmx.de
Thu Mar 11 14:36:43 UTC 2010
Pharo allows you to use underscores in method selectors.
This is currently in Pharo 1.1 and not 1.0.
Does that makes sense to have in Squeak trunk/Cuis too?
Try:
(HTTPSocket httpGet: 'http://www.assembla.com/spaces/SqueakDBX/documents/dvVhPSvuCr3OqXeJe5aVNr/download/underscore.cs') readStream fileIn
And you can implement a method
foo_test
^'Works'
Makes sense in conjunction with Glorp (when a database column
mapped to a class has underscores in it) or FFI (where one
can name methods like C constants, ...), ...
If it would be in all base images the Glorp loader wouldnt
have to patch these.
Thx
Bye
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
More information about the Squeak-dev
mailing list
|