Log Message:
-----------
fixed typo by changing all references to IntegerFunction or IntegerFunctions to the plural
The typo gave an immediate error when IntegerFunctions2::Init was called instead of
IntegerFunction2::Init while the internal name of the package was integerFunction2.
The external name of the context was IntegerFunctions and everything has been changed
to match that.
The fact that this bug has existed so long leads me to believe that this context is not
much used. Is there an alternative or better way to include C(n,k) and P(n,k) as
functions in the context? I'd also suggest changing the name to something like
contextCombinatorics since I think this is more likely to show up when someone searches
for C(n,k) or P(N,k) functionality using a keyword search. This would be feasible
if the current contextIntegerFunctions has not be used very much.
-- Mike Gage and Noah Bennett
Tags:
----
rel-2-4-patches
Modified Files:
--------------
pg/macros:
contextIntegerFunctions.pl
Revision Data
-------------
Index: contextIntegerFunctions.pl
===================================================================
RCS file: /webwork/cvs/system/pg/macros/contextIntegerFunctions.pl,v
retrieving revision 1.1.6.2.2.1
retrieving revision 1.1.6.2.2.2
diff -Lmacros/contextIntegerFunctions.pl -Lmacros/contextIntegerFunctions.pl -u -r1.1.6.2.2.1 -r1.1.6.2.2.2
--- macros/contextIntegerFunctions.pl
+++ macros/contextIntegerFunctions.pl
@@ -46,7 +46,7 @@
sub _contextIntegerFunctions_init {context::IntegerFunctions2::Init()}; # don't reload this file
-package context::IntegerFunction2;
+package context::IntegerFunctions2;
our @ISA = qw(Parser::Function::numeric2); # checks for 2 numeric inputs
sub C {
@@ -69,8 +69,8 @@
$context->{name} = "IntegerFunctions";
$context->functions->add(
- C => {class => 'context::IntegerFunction2'},
- P => {class => 'context::IntegerFunction2'},
+ C => {class => 'context::IntegerFunctions2'},
+ P => {class => 'context::IntegerFunctions2'},
);
main::Context("IntegerFunctions");
|