[squeak-dev] Extracting argument names from a block

Bert Freudenberg bert at freudenbergs.de
Mon May 21 21:00:44 UTC 2012


On 21.05.2012, at 22:47, Frank Shearar wrote:

> Without having to decompile a block, how may I find the names of a
> block's arguments?
> 
> In other words, given
> 
>     [:a :b :c | "stuff"]
> 
> I'd like to extract #(a b c).
> 
> (Failing that, I'll have to live with myBlock decompile arguments
> collect: [:a | a name asSymbol]).
> 
> frank

I don't know (I'm even surprise the decompiler knows) - but can you say a little bit more for what you would need that?

- Bert -




More information about the Squeak-dev mailing list