Skip to content

Commit

Permalink
remove unnecessary try/catch from typetree example
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Aug 26, 2015
1 parent 2244a5b commit 3efafd8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/typetree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,9 @@ end
# examine all symbols in module and store those that are types
function store_all_from(m::Module)
for expr = names(m,true)
try
t = eval(m,expr)
if isdefined(m,expr)
t = getfield(m, expr)
isa(t, Type) && store_type(string(expr), t)
#catch ex
# println("Error adding ", string(expr), m, " (", ex, ")")
end
end
end
Expand Down

0 comments on commit 3efafd8

Please sign in to comment.