summaryrefslogtreecommitdiff
path: root/MLKInteger.h
diff options
context:
space:
mode:
authorMatthias Benkard <mulk@minimulk.mst-plus>2008-07-06 23:53:04 +0200
committerMatthias Benkard <mulk@minimulk.mst-plus>2008-07-06 23:53:04 +0200
commit26a11662d6d371a1d0c44de6bb028a1523ba4dc5 (patch)
tree9532f796a01ba5b3000d3e5bd6062c59f2a934b6 /MLKInteger.h
parentbb79a71e7aa85536d3d60d50913d5fc39c4ac07b (diff)
Add class MLKNumber, unify arithmetic interface.
Diffstat (limited to 'MLKInteger.h')
-rw-r--r--MLKInteger.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/MLKInteger.h b/MLKInteger.h
index f3c8d4f..d0decb6 100644
--- a/MLKInteger.h
+++ b/MLKInteger.h
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#import "MLKLispValue.h"
+#import "MLKNumber.h"
#include <stdarg.h>
#include <stdio.h>
@@ -25,7 +25,7 @@
@class NSString;
-@interface MLKInteger : MLKLispValue
+@interface MLKInteger : MLKNumber
{
mpz_t value;
}
@@ -44,10 +44,10 @@
-(int) intValue;
--(MLKInteger *) add:(MLKInteger *)arg;
--(MLKInteger *) subtract:(MLKInteger *)arg;
--(MLKInteger *) multiplyWith:(MLKInteger *)arg;
--(MLKInteger *) divideBy:(MLKInteger *)arg;
+-(MLKNumber *) add:(MLKNumber *)arg;
+-(MLKNumber *) subtract:(MLKNumber *)arg;
+-(MLKNumber *) multiplyWith:(MLKNumber *)arg;
+-(MLKNumber *) divideBy:(MLKNumber *)arg;
-(NSString *) description;
-(NSString *) descriptionWithBase:(int)base;