Swapped pointers to the other side for types to prevent ambiguity, i.e. *int instead of int*

This commit is contained in:
Nathan Braswell
2015-07-04 17:02:51 -04:00
parent d2b12fea35
commit 2c29846570
41 changed files with 149 additions and 166 deletions

View File

@@ -1,7 +1,7 @@
import vector:*;
import io:*;
typedef matrix (Object) {
obj matrix (Object) {
var data: vector<double>;
var rows: int;
var cols: int;
@@ -12,7 +12,7 @@ typedef matrix (Object) {
//Constructor with no arguments
//No matrix is made
fun construct(): matrix* {
fun construct(): *matrix {
rows = 0;
cols = 0;
data.construct();
@@ -21,7 +21,7 @@ typedef matrix (Object) {
//Constructor with single argument
//Creates an N x N matrix
fun construct(size: int): matrix* {
fun construct(size: int): *matrix {
rows = size;
cols = size;
data.construct(rows*cols);
@@ -30,7 +30,7 @@ typedef matrix (Object) {
//Constructor with two arguments
//Creates an N x M matrix
fun construct(r: int, c: int): matrix* {
fun construct(r: int, c: int): *matrix {
rows = r;
cols = c;
data.construct(rows*cols);
@@ -144,23 +144,3 @@ typedef matrix (Object) {
};//end Matrix class