-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
75 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
f := function() | ||
local l; | ||
l := 0 * [1..6]; | ||
l[[1..3]] := 1; | ||
end; | ||
f(); | ||
Where(); | ||
quit; | ||
|
||
|
||
f:=function() if true = 1/0 then return 1; fi; return 2; end;; | ||
f(); | ||
Where(); | ||
quit; | ||
|
||
|
||
f:=function() if 1 then return 1; fi; return 2; end;; | ||
f(); | ||
Where(); | ||
quit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
gap> f := function() | ||
> local l; | ||
> l := 0 * [1..6]; | ||
> l[[1..3]] := 1; | ||
> end; | ||
function( ) ... end | ||
gap> f(); | ||
Error, no method found! For debugging hints type ?Recovery from NoMethodFound | ||
Error, no 1st choice method found for `[]:=' on 3 arguments at GAPROOT/lib/methsel2.g:250 called from | ||
l[[ 1 .. 3 ]] := 1; at *stdin*:5 called from | ||
<function "f">( <arguments> ) | ||
called from read-eval loop at *stdin*:7 | ||
type 'quit;' to quit to outer loop | ||
brk> Where(); | ||
l[[ 1 .. 3 ]] := 1; at *stdin*:5 called from | ||
<function "f">( <arguments> ) | ||
called from read-eval loop at *errin*:1 | ||
brk> quit; | ||
gap> | ||
gap> | ||
gap> f:=function() if true = 1/0 then return 1; fi; return 2; end;; | ||
gap> f(); | ||
Error, Rational operations: <divisor> must not be zero in | ||
1 / 0 at *stdin*:9 called from | ||
<function "f">( <arguments> ) | ||
called from read-eval loop at *stdin*:10 | ||
you can replace <divisor> via 'return <divisor>;' | ||
brk> Where(); | ||
<function "f">( <arguments> ) | ||
called from read-eval loop at *errin*:1 | ||
brk> quit; | ||
gap> QUIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters