[GAP Forum] A Question about For Loops

Minghui Liu matliumh at gmail.com
Tue Feb 11 11:32:42 GMT 2014


Sorry the above message was incomplete.

The error message is

Error, illegal access to record component `obj.x'
of the object <obj>. (Objects by default do not have record components.
The error might be a relic from translated GAP3 code.)       called from
<compiled or corrupted statement>  called from
<function "unknown">( <arguments> )
 called from read-eval loop at line 28 of *stdin*
you can 'quit;' to quit to outer loop, or
you can 'return;' to continue

Anyone could help me with it?

Many thanks!!

Zuriel


On 11 February 2014 19:31, Minghui Liu <matliumh at gmail.com> wrote:

> Dear All,
>
> In GAP I would like to create a free group with 200 generators and call
> the nth generator dn. I tried the following commands but it does not work:
>
> gap> F:=FreeGroup(200);
> gap> a:=[1..200];
> gap> for x in a do
> > dx:=F.x;
> > od;
>
> The error message is
>
>
>
>
>


More information about the Forum mailing list