[squeak-dev] Selectors with underscores

Edgar J. De Cleene edgardec2005 at gmail.com
Thu Mar 11 13:45:09 UTC 2010




On 3/11/10 12:36 PM, "Torsten Bergmann" <astares at gmx.de> wrote:

> 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/dow
> nload/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
+1





More information about the Squeak-dev mailing list