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

Quelle  bugfix-2019-09-27-LastPV.g.out   Sprache: unbekannt

 
gap> filt:=NewFilter("BreakPrint");;
gap> InstallMethod(ViewObj, [filt], SUM_FLAGS, x -> 0/0);;
gap> badgroup := Group(());
Group(())
gap> SetFilterObj(badgroup, filt);
gap> old_OnBreak:=OnBreak;;
gap> OnBreak:=fail;; # prevent backtrace with line numbers that keep chaning
gap> View([[badgroup]]); # <- trigger break loop
Error, Rational operations: <divisor> must not be zero in
  0 / 0 at *stdin*:3 called from 
type 'quit;' to quit to outer loop
brk> quit;
[ [ 
gap> OnBreak:=old_OnBreak;;
gap> l := [1,2,3];
[ 1, 2, 3 ]
gap> l;
[ 1, 2, 3 ]
gap> Print(l,"\n");
[ 1, 2, 3 ]
gap> l;
[ 1, 2, 3 ]
gap> Print(l,"\n");
[ 1, 2, 3 ]
gap> Print(l,"\n");
[ 1, 2, 3 ]
gap> 2;
2
gap> Print(l,"\n");
[ 1, 2, 3 ]
gap> Print(l,"\n");
[ 1, 2, 3 ]
gap> QUIT;

[ Dauer der Verarbeitung: 0.4 Sekunden  (vorverarbeitet)  ]