Hi Ben, ah! thank you, I did not know that. Dynamic arrays are new for me coming from another smalltalk dialect. Greetings Sabine On Wed, Jul 11, 2012 at 3:46 PM, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote:
You can do
'one: {1} two: {2} three: {3}' format: {'1'. '2'. '3'}
:) Ben
On Jul 11, 2012, at 3:42 PM, Sabine Knöfel wrote:
Hi Stef,
it is a helper method to put some strings together. Instead of using commata, like this
'one: ','1',' two: ','2',' three: ','3' ==>> 'one: 1 two: 2 three: 3'
you use String>>bindWith:with:with:
'one: %1 two: %2 three: %3' bindWith: '1' with: '2' with: '3'
==> 'one: 1 two: 2 three: 3'
It is more readable (and writeable:-)) imho.
I know this from ibm Smalltalk/VisualAge and as far as I remember, Visual works has it, too.
Greetings Sabine
On Wed, Jul 11, 2012 at 2:59 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Hi sabine
what is bindWith:?
Stef
On Jul 10, 2012, at 4:49 PM, Sabine Knöfel wrote:
Hi All,
I miss String>>bindWith:
bindWith: with: etc.
in Pharo. Is there a reason for that missing? Has anyone an implementation for me? I dont want to reinvent the wheel ;-)
Greetings Sabine