[GAP Forum] a(n) integer

Alexander Konovalov alexander.konovalov at gmail.com
Sun Nov 20 17:21:36 GMT 2011


Dear Lisette,

This is an automatically generated error message coming from the following
line of the C code in the GAP kernel:

"List Assignment: <position> must be a positive integer (not a %s)",

where %s is substituted by the appropriate word(s), e.g:

gap> l:=[1];
[ 1 ]
gap> l[0];
List Element: <position> must be positive (not a 0)
gap> l[(1,2)]; 
List Element: <position> must be a positive integer (not a permutation (small))

In such cases it is a common practice to use just "a" as a "default" article.

I hope that the meaning of the error message was still clear to you - likely 
you've tried to access a list element at zero or negative position.

Hope this helps,
Alexander



On 20 Nov 2011, at 16:25, Lisette Brillemans wrote:

> Dear forum,
> 
> 
> English is not my home language so I could be wrong. But today while
> programming I made a small mistake about which GAP informed me by:
> 
> List Assignment: <position> must be a positive integer (not a integer) at 
> 
> I wonder if that "not a integer" should not be: "not an integer".
> Or does "a" mean here, "not just an" or so.
> Again: English is not my home language so I could be wrong.
> 
> 
> With regards,
> 
> 
> Lisette
> 
> 
> _______________________________________________
> Forum mailing list
> Forum at mail.gap-system.org
> http://mail.gap-system.org/mailman/listinfo/forum




More information about the Forum mailing list