You can do that but using getfield is safer and faster: julia> getfield(Base, :Int) Int64
On Sat, Nov 8, 2014 at 11:45 PM, Sal Mangano <[email protected]> wrote: > If I have a symbol containing the name of a Type (e.g. :Int64) or an > expression if qualified by a module e.g., :(Base.ASCIIString) is eval() the > proper way to convert the symbol/expr to the type it names (e.g. > eval(:Int64))? Will this work everywhere as long as the named type is > visible? >
