Skip to content

Commit bcd2931

Browse files
authored
Merge pull request #248 from zickgraf/master
Use FunctionWithNamedArguments
2 parents e6bb67d + f8c005a commit bcd2931

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

PackageInfo.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "FinSetsForCAP",
1212
Subtitle := "The elementary topos of (skeletal) finite sets",
13-
Version := "2024.02-05",
13+
Version := "2024.02-06",
1414

1515
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)( ),
1616
License := "GPL-2.0-or-later",

gap/SkeletalFinSets.gi

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
InstallMethod( SkeletalCategoryOfFiniteSets,
99
[ ],
1010

11-
function ( )
11+
FunctionWithNamedArguments(
12+
[
13+
[ "no_precompiled_code", false ],
14+
],
15+
function ( CAP_NAMED_ARGUMENTS )
1216
local cat;
1317

1418
cat := CreateCapCategoryWithDataTypes(
@@ -41,7 +45,7 @@ InstallMethod( SkeletalCategoryOfFiniteSets,
4145
Filename( DirectoriesPackageLibrary( "Toposes", "LogicForToposes" ), "PropositionsForToposes.tex" ) );
4246
# =#
4347

44-
if ValueOption( "no_precompiled_code" ) <> true then
48+
if not CAP_NAMED_ARGUMENTS.no_precompiled_code then
4549

4650
ADD_FUNCTIONS_FOR_SkeletalCategoryOfFiniteSetsWithMorphismsGivenByListsPrecompiled( cat );
4751

@@ -51,7 +55,7 @@ InstallMethod( SkeletalCategoryOfFiniteSets,
5155

5256
return cat;
5357

54-
end );
58+
end ) );
5559

5660
##
5761
InstallMethod( FinSetOp,

0 commit comments

Comments
 (0)