You might just want a Dict:
d = Dict{Symbol,Any}()
d[:spec_name] = "hi there"
d[:lambda] = [1.0f0, 1.3f0]
and so forth.
--Tim
On Monday, February 02, 2015 08:15:46 AM alex codoreanu wrote:
> Hi,
>
> I am trying to figure out how to erase a previous instance of a type
> definition. I am writing a function that can dynamically create a
> return_type based on the variables passed to it. For example:
>
> instance 1
> type data_return_type
> spec_name::String
> lambda::Vector(Float32}
> spec::Vector(Float32}
> end
>
> instance 2
> type data_return_type
> spec_name::String
> lambda::Vector(Float32}
> spec::Vector(Float32}
> continuum::Vector(Float32}
> end
>
>
> The problem I am having is that I get the message:
>
> " Invalid redefinition of constant type data_return_type"
>
> so I would like to erase the previous instance of data_return_type or is
> there a more traditional way to create a structure?
>
>
>
> Thank you!