Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/GAP/src/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 18.9.2025 mit Größe 803 B image not shown  

Quelle  stack-depth-rec.g.out   Sprache: unbekannt

 
gap> r := rec(); for i in [1..10000] do r := rec(a := r); od;
rec(  )
gap> Print(r);
rec(
  a := rec(
      a := rec(
          a := rec(
              a := rec(
                  a := rec(
                      a := rec(
                          a := rec(
                              a := rec(
                                  a := rec(
                                      a := rec(
                                          a := rec(
                                              a := rec(
                                                  a := rec(
                                                      a := rec(
                                                          a := rec(
                                                              a := rec(
                                                                  a := rec(
                                                                      a := rec(
                                                                          a := rec(
                                                                              a := rec(
                                                                                  a := rec(
                                                                                      a := rec(
                                                                                          a := rec(
                                                                                              a := rec(
                                                                                                  a := rec(
                                                                                                      a := rec(
                                                                                                          a := rec(
                                                                                                              a := rec(
                                                                                                                  a := rec(
                                                                                                                      a := rec(
                                                                                                                          a := rec(
                                                                                                                              a := rec(
                                                                                                                                  a := rec(
                                                                                                                                      a := rec(
                                                                                                                                          a := rec(
                                                                                                                                              a := rec(
                                                                                                                                                  a := rec(
                                                                                                                                                      a := rec(
                                                                                                                                                          a := rec(
                                                                                                                                                              a := rec(
                                                                                                                                                                  a := rec(
                                                                                                                                                                      a := rec(
                                                                                                                                                                          a := rec(
                                                                                                                                                                              a := rec(
                                                                                                                                                                                  a := rec(
                                                                                                                                                                                      a := rec(
                                                                                                                                                                                          a := rec(
                                                                                                                                                                                              a := rec(
                                                                                                                                                                                                  a := rec(
                                                                                                                                                                                                      a := rec(
                                                                                                                                                                                                          a := rec(
                                                                                                                                                                                                              a := rec(
                                                                                                                                                                                                                  a := rec(
                                                                                                                                                                                                                      a := rec(
                                                                                                                                                                                                                          a := rec(
                                                                                                                                                                                                                              a := rec(
                                                                                                                                                                                                                                  a := rec(
                                                                                                                                                                                                                                      a := rec(
                                                                                                                                                                                                                                          a := rec(
                                                                                                                                                                                                                                              a := rec(
                                                                                                                                                                                                                                                  a := rec(
                                                                                                                                                                                                                                                      a := rec(
                                                                                                                                                                                                                                                          a := rec(
                                                                                                                                                                                                                                                              a := 
                                                                                                                                                                                                                                                                printing stopped, too many recursion levels!
                                                                                                                                                                                                                                                                 ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )
gap> String(r);
Error, recursion depth trap (5000) in
  String( record.(nam) ) at GAPROOT/lib/record.gi:LINE called from 
String( record.(nam) ) at GAPROOT/lib/record.gi:LINE called from
String( record.(nam) ) at GAPROOT/lib/record.gi:LINE called from
String( record.(nam) ) at GAPROOT/lib/record.gi:LINE called from
String( record.(nam) ) at GAPROOT/lib/record.gi:LINE called from
String( record.(nam) ) at GAPROOT/lib/record.gi:LINE called from
...  at *stdin*:4
you may 'return;'
brk> return; # try once more
Error, recursion depth trap (5000) in
  String( record.(nam) ) at GAPROOT/lib/record.gi:LINE called from 
String( record.(nam) ) at GAPROOT/lib/record.gi:LINE called from
String( record.(nam) ) at GAPROOT/lib/record.gi:LINE called from
String( record.(nam) ) at GAPROOT/lib/record.gi:LINE called from
String( record.(nam) ) at GAPROOT/lib/record.gi:LINE called from
String( record.(nam) ) at GAPROOT/lib/record.gi:LINE called from
...  at *stdin*:4
you may 'return;'
brk> QUIT;

[ Dauer der Verarbeitung: 0.39 Sekunden  (vorverarbeitet)  ]