Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2 from invenia/noeval
Browse files Browse the repository at this point in the history
Remove unnecessary eval.
  • Loading branch information
samuel-massinon-invenia committed Jan 18, 2016
2 parents fe37a09 + 05534be commit 41ff3e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/virtual_cat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

function virtual_cat{T}(expanded_dim::Int, parents::AbstractArray{T}...)
dim = max(expanded_dim, largest_dim(parents...))
return eval(:(VirtualArray{$T, $dim}($expanded_dim, $(parents...))))
return VirtualArray{T, dim}(expanded_dim, parents...)
end

function virtual_cat(expanded_dim::Int)
Expand All @@ -24,4 +24,4 @@ function largest_dim(parents::AbstractArray...)
largest = max(largest, length(size(parent)))
end
return largest
end
end

0 comments on commit 41ff3e2

Please sign in to comment.