[metapost] independent variables overflow

Pétiard François petiard.francois at free.fr
Thu Jan 10 11:24:24 CET 2008


Hans Hagen a écrit :
> Boguslaw Jackowski wrote:
> 
>> I'm using archaic WIN98 (and equally archaic MPOST -- don't say it to Taco
>> and Hans ;-)
> 
> on my hip and modern VISTA and up-to-date MPOST i get
> 
> ! MetaPost capacity exceeded, sorry [independent variables=33554431].
> <for(895.93794)> line:=(1,0)--(1,1)
>                                     ; ENDFOR
> l.153 endfor
>              ;

Same problem on my computer (MetaPost 1.000, MiKTeX2.6, Windows XP SP2).

That file:

beginfig(1);
picture pic;
numeric a;
draw (0,0)--(10,10);
for i:=0 step 0.0001 until 1000:
   pic:=currentpicture;
   a:=i;
endfor;
endfig;
end;

compiles without any problem...


But that file:

beginfig(1);
color col;
draw (0,0)--(10,10);
for i:=0 step 0.0001 until 1000:
   col:=(0,0,i/1000);
endfor;

endfig;
end;

produces the same error:
! MetaPost capacity exceeded, sorry [independent variables=33554431].
<for(398.21825)> ...00,(EXPR0)/1000,(EXPR0)/1000);
                                                    ENDFOR
l.11 endfor
            ;


And also that file:

beginfig(1);
picture pic;
numeric a;
draw (0,0)--(10,10);
for i:=0 step 0.00001 until 1000:
   a:=i;
endfor;
endfig;
end;

(! MetaPost capacity exceeded, sorry [independent variables=33554431].
<for(511.99493)> a:=(EXPR0);
                              ENDFOR
l.13 endfor
            ;)


F. Pétiard



More information about the metapost mailing list