Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  2020-01-13-OnSets-Mutability.tst   Sprache: unbekannt

 
# OnSets would sometimes return a mutable list when it should have returned an
# immutable one; in HPC-GAP this got worse, as the final object was a mutable
# and *public* list.
#
# This only happened if the acting element was not internal, i.e., not a
# permutation, partial permutation or transformation.
gap> g:=SymmetricGroup(5);;
gap> phi:=ConjugatorAutomorphism(g,One(g));;

# mutable -> mutable
gap> l:=OnSets([ (1,2) ], phi);
[ (1,2) ]
gap> IsMutable(l);
true
#@if IsHPCGAP
gap> IsPublic(l);
false
#@fi

# immutable -> immutable
gap> l:=OnSets(Immutable([ (1,2) ]), phi);
[ (1,2) ]
gap> IsMutable(l);
false
#@if IsHPCGAP
gap> IsPublic(l);
true
#@fi

[ Dauer der Verarbeitung: 0.32 Sekunden  (vorverarbeitet)  ]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge