* help required w.r.t " vardef " in mpost.
@ 2004-04-07 3:40 vinuth madinur
2004-04-07 17:00 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: vinuth madinur @ 2004-04-07 3:40 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: help required w.r.t " vardef " in mpost.
2004-04-07 3:40 help required w.r.t " vardef " in mpost vinuth madinur
@ 2004-04-07 17:00 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2004-04-07 17:00 UTC (permalink / raw)
At 05:40 07/04/2004, you wrote:
>In the following code :
>
>vardef list =
> A , B , C , A
>enddef;
There is no list concept like that, so it fails on A,B,...
Hans
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-07 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-07 3:40 help required w.r.t " vardef " in mpost vinuth madinur
2004-04-07 17:00 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).