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

Impressum help.tst   Sprache: unbekannt

 
# Test help

#
gap> if true then ?what fi;
Syntax error: '?' cannot be used in this context in stream:1
if true then ?what fi;
             ^^^^^^^^^
Syntax error: while parsing an 'if' statement: statement or 'fi' expected in s\
tream:2

#
gap> if false then ?what fi;
Syntax error: '?' cannot be used in this context in stream:1
if false then ?what fi;
              ^^^^^^^^^
Syntax error: while parsing an 'if' statement: statement or 'fi' expected in s\
tream:2

#
gap> f := function()
> ?help
Syntax error: '?' cannot be used in this context in stream:2
?help
^^^^^
Syntax error: while parsing a function: statement or 'end' expected in stream:\
3

#
gap> old_help := HELP;;
gap> MakeReadWriteGlobal("HELP");
gap> Unbind(HELP);
gap> ?foo
Error, Global variable "HELP" is not defined. Cannot access help
gap> HELP:=1;;
gap> ?foo
Error, Global variable "HELP" is not a function. Cannot access help
gap> HELP:=x->x;;
gap> ?foo
"foo"
gap> HELP := old_help;;
gap> MakeReadOnlyGlobal("HELP");

[ Seitenstruktur0.4Drucken  etwas mehr zur Ethik  ]