On 4/26/10, Hannes Hirzel hannes.hirzel@gmail.com wrote:
On 4/26/10, Bert Freudenberg bert@freudenbergs.de wrote:
On 27.04.2010, at 00:47, Hannes Hirzel wrote:
And: to me the code for the menu definitions looks ugly. A kind of assembler like, lisp-s expression thing with a lot of implied assumptions.
You mean this?
MenuEntrySpec newFrom: (Dictionary newFromPairs: #( contents 'Well... hello?' help 'Displays the Hello World' location ('Help') target MenuMorph selector inform: arguments ('Hello World!') position first))
Yes, I agree with you Bert. It looks somewhat like s-expressions. But it need not. I could construct the dictionary with 'regular' Smalltalk code. Having a dictionary to move parameters around is quite common.
However as I said in my previous message - the pragma based solution is fine for me.
--Hannes