[Pharo-users] [pharo 2.0] IP address to ByteArray

Stéphane Ducasse stephane.ducasse at inria.fr
Tue Jul 31 15:21:05 EDT 2012

The problem is that 

'' copyUpTo: $.

copyUpTo: does not help because what you would like is a method that return
	'127' and '0.23.11'

I could not find one. If you do or define it I would like to add it to the system.
Because with it we could do one pass instead of two.


On Jul 31, 2012, at 7:21 PM, Bernardo Ezequiel Contreras wrote:

> Hi all,
>     Is there a better way to convert an IP address to a ByteArray?
>     I'm doing this
>      ('' subStrings: '.') collect: [:each | each asInteger ] as: ByteArray 
> thanks
> -- 
> Bernardo E.C.

More information about the Pharo-users mailing list