[NTG-context] metafun question

2004-08-16 Thread Floris van Manen
it seems that metafun has difficulty understanding the example using thevardef [EMAIL PROTECTED] expr p = construct. ! Illegal parameter number in definition of [EMAIL PROTECTED]@dummy2. to be read again argument ... p of p enddef; \par vardef [EMAIL PROTECTED]

[NTG-context] metafun question getting XY

2004-08-16 Thread Floris van Manen
if i define a path q := (w0,w0)--(w0,ww0)--(w2,ww1)--(w3,ww2)--(w3,w0)--cycle ; and then pass this path as a parameter to a function test( q ) ; then within that function i can step through the 'list of points'. def test( expr a ) = for i = 1 upto (length(a)-2): dotlabel.bot ( , (point i

Re: [NTG-context] metafun question getting XY

2004-08-16 Thread Hans Hagen
Floris van Manen wrote: if i define a path q := (w0,w0)--(w0,ww0)--(w2,ww1)--(w3,ww2)--(w3,w0)--cycle ; and then pass this path as a parameter to a function test( q ) ; then within that function i can step through the 'list of points'. def test( expr a ) = for i = 1 upto (length(a)-2):

Re: [NTG-context] metafun question

2004-08-16 Thread Hans Hagen
Floris van Manen wrote: it seems that metafun has difficulty understanding the example using no, it's tex playing tricks (# is kin dof special to tex) thevardef [EMAIL PROTECTED] expr p = construct. use \# instead Hans -