Skip to content

Commit

Permalink
Merge pull request homalg-project#1588 from mohamed-barakat/list_of_o…
Browse files Browse the repository at this point in the history
…bjects

terminal category constructor now ignores operations returning list_of_objects
  • Loading branch information
zickgraf authored Feb 13, 2024
2 parents 2232098 + 69f05e1 commit 2136daf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CAP/PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SetPackageInfo( rec(

PackageName := "CAP",
Subtitle := "Categories, Algorithms, Programming",
Version := "2024.01-06",
Version := "2024.02-01",
Date := (function ( ) if IsBound( GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE ) then return GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE; else return Concatenation( ~.Version{[ 1 .. 4 ]}, "-", ~.Version{[ 6, 7 ]}, "-01" ); fi; end)( ),
License := "GPL-2.0-or-later",

Expand Down
7 changes: 6 additions & 1 deletion CAP/gap/TerminalCategory.gi
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ InstallGlobalFunction( CAP_INTERNAL_CONSTRUCTOR_FOR_TERMINAL_CATEGORY,
if info.return_type = "bool" then
Add( skip, operation_name );
fi;


# Do not install operations returning a list of objects since the length of the list is unknown to us
if info.return_type = "list_of_objects" then
Add( skip, operation_name );
fi;

od;

list_of_operations_to_install := Difference( list_of_operations_to_install, skip );
Expand Down

0 comments on commit 2136daf

Please sign in to comment.