In the following code :

vardef list =
  A , B , C , A
enddef;

def triangle =
  forsuffixes $=list:
    pair T.$;
  endfor;
enddef;

beginfig(1)
  triangle;
  
  T.A = (2,3);
  T.B = (3,5);
  T.C = (2,6);

  T = T.A -- T.B -- T.C -- cycle;
  draw T;

endfig;

end;


In macro "list" if i give just "def" instead of "vardef" the program works fine.
But with "vardef" i'm getting many errors.
I'm not able to figure this out.
Please help;

thanx in advance.
Vinuth.
-- 
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze
_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to