[metapost] Filling an array

mskala at ansuz.sooke.bc.ca mskala at ansuz.sooke.bc.ca
Mon Jun 18 18:53:41 CEST 2012


On Mon, 18 Jun 2012, Troy Henderson wrote:
> but when I tried calling the function with
>
> fillarray(x);
>
> or with
>
> fillarray(x[]);
>
> I get error(s).  Can a function be defined in MetaPost to fill an array?

You need to make the argument a suffix, not an expr.  Exprs are passed
by value.
-- 
Matthew Skala
mskala at ansuz.sooke.bc.ca                 People before principles.
http://ansuz.sooke.bc.ca/


More information about the metapost mailing list