Hi I was wondering if there is a way to do this? To access a fieldname with 
a variable?

type Foo
 bar:Float64
end

foo = Foo(5.0)

test = :bar
foo[test]



Also, I wondered if there is a way to convert an object into a dict? I want 
to "println" an object in a way that's readable in the output, like a Dict.



Reply via email to