@@ -46,12 +46,12 @@ function generate_arrays(maxSz::Integer)
46
46
const reductions = ((:sum ,:+ ),(:prod ,:* ),(:minimum ,:min ),(:maximum ,:max ))
47
47
48
48
# expression functions
49
- vecTyp (n) = symbol (string (" Vector" ,n))
49
+ vecTyp (n) = @compat Symbol (string (" Vector" ,n))
50
50
vecTypT (n) = Expr (:curly , vecTyp (n), :T )
51
- matTyp (r,c) = symbol (string (" Matrix" ,r," x" ,c))
51
+ matTyp (r,c) = @compat Symbol (string (" Matrix" ,r," x" ,c))
52
52
matTypT (r,c) = Expr (:curly , matTyp (r,c,), :T )
53
- elt (i) = symbol (string (" e" ,i))
54
- col (i) = symbol (string (" c" ,i))
53
+ elt (i) = @compat Symbol (string (" e" ,i))
54
+ col (i) = @compat Symbol (string (" c" ,i))
55
55
mem (s,e) = Expr (:.,s,Expr (:quote ,e))
56
56
velt (v,i) = mem (v,elt (i))
57
57
melt (m,i,j) = mem (mem (m,col (j)),elt (i))
@@ -78,7 +78,7 @@ function generate_arrays(maxSz::Integer)
78
78
ctorn_body = :($ TypT ())
79
79
ctor1_body = :($ TypT ())
80
80
for i = 1 : sz
81
- local arg = symbol (string (" a" ,i))
81
+ local arg = @compat Symbol (string (" a" ,i))
82
82
push! (ctorn_sig. args, :($ arg:: T ))
83
83
push! (ctorn_body. args, arg)
84
84
push! (ctor1_body. args, :a )
@@ -269,7 +269,7 @@ function generate_arrays(maxSz::Integer)
269
269
ctorn_body = :($ TypT ())
270
270
ctor1_body = :($ TypT ())
271
271
for i = 1 : cSz
272
- local arg = symbol (string (" a" ,i))
272
+ local arg = @compat Symbol (string (" a" ,i))
273
273
push! (ctorn_sig. args, :($ arg:: $ColTypT ))
274
274
push! (ctorn_body. args, arg)
275
275
push! (ctor1_body. args, :a )
0 commit comments