Thankx Hans,
But why does this work with "def" and not with "vardef" . "list" is just a macro name
i've used.
And "A,B,C,A" is just the replacement text I want when I call the macro "list".
Is there any other way of doing this?
Vinuth.
--
__
Check o
On 7 Apr 2004, at 11:00, [EMAIL PROTECTED] wrote:
In the following code :
vardef list =
A , B , C , A
enddef;
def triangle =
forsuffixes $=list:
pair T.$;
endfor;
enddef;
beginfig(1)
triangle;
path T;
T.A = (2,3);
T.B = (3,5);
T.C = (2,6);
T = T.A -- T.B -- T.C -- cycle;