An open source project with basic packages in MathOO
A package is released as open source project in GoogleCode/MathOO-packages. The aim of the project is to provide basic utilities and basic classes using MathOO, so that you can use it in an object oriented way. In the initial release, 1.0b, a dictionary class (associated array) is provided.
Content |
Introduction
MathOO is a Mathematica package which adds object-oriented programming to Mathematica in a simple and easy to use way[1]. With object-oriented capability, basic libraries which provides utilites function and useful classes is vital to the users. Therefore, an open source project is hosted in GoogleCode/MathOO-packages, in the hope that users of MathOO can contribute to it to make it complete. I will add different classes to it that I find useful. If you have written something that you want to share, you may send me and joining the project in Google code.
Download and Install
To use the package, you need to first install MathOO. Please read this article for details:
You may download the initial release here: MathOO-packages-1.01b.zip.
There are two files inside:
- basic.nb
- basic.m
basic.m is an auto-generated package files from basic.nb. You should make your own change to basic.nb if you want to modify it. The basic.m can be copy to the directory: $UserBaseDirectory\Applications. So that you can load the package easily by running:
Get["basic.m"]
After running the command, you will find a NewClass, dict. This class is very similar to Python dict.
Documentation
In this stage, there is only one class dict in basic.m. Please read:
Documentation of dict : A Mathematica Dictionary (Associative Array) using MathOO
to learn how to use it.
Footnotes and Citations
- Ross Tang"MathOO: Adding Python style Object Orientation to Mathematica with MathOO (1.0 beta launch) [Alternative to Objectica]",Retrieved 8 November 2010
Please login to post comment.