What is the meaning of numArgs

Bert Freudenberg bert at freudenbergs.de
Fri Jul 27 23:54:04 UTC 2007


On Jul 28, 2007, at 1:48 , nicolas cellier wrote:

> "i can understand valid selectors:"
>
> "Unary:"
> #yourself numArgs = 0.
>
> "Binary:"
> #'**' numArgs = 1.
>
> "Keywords"
> #at: numArgs = 1.
> #at:put: numArgs = 2.
>
>
> "But does anyone knows what the following cases are meaning?"
> #'a:b:c' numArgs = 1.
> #'a::bc' numArgs = 1.
> #':abc:' numArgs = 0.
> #'::abc' numArgs = -1.
> #':abc' numArgs = -2.
>
>
> #':::' numArgs. "make your guess here"
>

I guess these are remnants of the experiments with alternate  
syntaxes, which allowed leading and trailing parts of identifiers  
IIRC (e.g., "if ... then ... end" would be a valid expression and the  
selector ":if:then:end" - I'm making this up, but something along the  
lines was supported).

- Bert -





More information about the Squeak-dev mailing list