Does this help?

adverb =: =: timer_start@({&timer_buttontimes)@
scoreboard_timer0_button =: 0: adverb
scoreboard_timer1_button =: 1: adverb
scoreboard_timer2_button =: 2: adverb
scoreboard_timer3_button =: 3: adverb
scoreboard_timer4_button =: 4: adverb

... or do you need to lose more bulk?

------------------------------------------------------------------------
|\/| Randy A MacDonald   | APL: If you can say it, it's done.. (ram)
|/\| [EMAIL PROTECTED]  |
|\ |                     | The only real problem with APL is that
BSc(Math) UNBF'83        | it is "still ahead of its time."
Sapere Aude              |     - Morten Kromberg
Natural Born APL'er      | Demo website: http://156.34.81.239/
-----------------------------------------------------(INTP)----{ gnat }-

----- Original Message ----- 
From: "Henry Rich" <[EMAIL PROTECTED]>
To: "'Programming forum'" <[email protected]>
Sent: Sunday, January 21, 2007 6:06 PM
Subject: [Jprogramming] Is there a 'Who am I' function?


> Doing user interfaces I often find myself with several buttons that
> point to the same underlying function with different arguments, like:
>
> scoreboard_timer0_button =: timer_start@({&timer_buttontimes)@0:
> scoreboard_timer1_button =: timer_start@({&timer_buttontimes)@1:
> scoreboard_timer2_button =: timer_start@({&timer_buttontimes)@2:
> scoreboard_timer3_button =: timer_start@({&timer_buttontimes)@3:
> scoreboard_timer4_button =: timer_start@({&timer_buttontimes)@4:
> etc...
>
>
> I could save quite a bit of bulk if I could come up with an expression,
> call it
>
> whoami
>
> which would return, as a character string, the name of the explicit
definition
> it is running in.
>
> I emphatically DO NOT want for whoami to require that debug be turned on.
>
> I have been defeated.  Any winners?
>
> Henry Rich
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to