ups, sorrry. It works. On Thu, Jan 24, 2013 at 2:25 PM, Benjamin Van Ryseghem-2 [via Smalltalk] < ml-node+s1294792n4665098h33@n4.nabble.com> wrote:
What is not working exactly ?
Ben
On Jan 24, 2013, at 2:17 PM, Sabine Knöfel wrote:
Hi,
I want to create a block like this:
dayNamesShortBlock ^ ['SoMoDiMiDoFrSa' ] "this works"
But in my case, the contents of the block is the result of a method.
dayNamesShortBlock ^ [self dayNamesGermanString]. "does not work"
dayNamesGermanString ^'SoMoDiMiDoFrSa'
So my question is how can I generate a Block dynamically? Sabine
-- View this message in context: http://forum.world.st/dynamically-create-a-block-how-tp4665094.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
------------------------------ If you reply to this email, your message will be added to the discussion below: http://forum.world.st/dynamically-create-a-block-how-tp4665094p4665098.html To unsubscribe from dynamically create a block - how?, click here<http://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_code&nod...> . NAML<http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant...>
-- View this message in context: http://forum.world.st/dynamically-create-a-block-how-tp4665094p4665100.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.