On 05/20/2013 09:58 PM, Diggory wrote: > On Tuesday, 21 May 2013 at 04:36:57 UTC, Ali Çehreli wrote: >> Sounds like std.variant.Algebraic: >> >> http://dlang.org/phobos/std_variant.html#.Algebraic >> >> Ali > > I don't see how I could use that. Algebraic is for storing a value, I'm > trying to store just a type.
But you did say you needed to store data: "... an object that stores some typed data ... the user should be able to tell it what type of data it will hold."
With my current limited understanding, I still think Algebraic would be a solution.
Ali