summaryrefslogtreecommitdiff
path: root/info/challenges/aro-bend/exercise.006
blob: 29e1fbfdbb4f860430fad73817df00e63f5303a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Posted to info-tex on 4 Nov 91; see exercise.004]
**********************************************************************
*** Exercise 6 (hard):

Define a macro \args that can be used to fill in the proper number
in the following sentence no matter how \foo is defined (except
you may assume it is not \outer).

     The macro {\tt\string\foo} has {\args\foo} arguments.

Is it possible to solve this if \foo is \outer also? Is it possible
to make \args fully expandable, so that it could be used in a
message:

     \message{The macro \noexpand\foo has \args\foo\space arguments.}

**********************************************************************