On 03.12.2014 10:19, Sven Van Caekenberghe wrote:
Hmm, have you seen that ZnClient>>#addPath: actually does this already for non-string arguments (assumed to be collections) ? No I didn't. That's even better for my purposes!
That is too specific, to add for everyone I think. Now, the #split: behaviour is already in there. I just deleted this method. I can work with intances of Path - so no need to #split: Strings anymore.
'http://myhost.com' asUrl / 'foo' / 'élève-ümlaut.txt'.
It is about as short as it gets, right ?
Here is how to get the #split: behaviour:
'http://myhost.com' asUrl / 'foo/élève-ümlaut.txt'
When adding a string, the argument is split on / automatically. As always I amazed of Smalltalk in general and the design of Zinc specifically ...
CU, Udo