Handling different types gracefully
Roderick Gibson
kniteli at gmail.com
Tue Jul 2 13:31:39 PDT 2013
On Tuesday, 2 July 2013 at 06:54:58 UTC, bearophile wrote:
> Roderick Gibson:
>
>> Variant is a possiblity. How is the performance with large
>> containers of these, since these structures will likely hold
>> the majority of the data in the game?
>
> You probably have to benchmark yourself. (But I have suggested
> an Algebraic).
>
> Bye,
> bearophile
I should know the types at compile time, so I will be using it
most likely, but reading the docs it looks like Algebraic is
built on top of the same structure as Variant. Is there any
difference in implementation?
More information about the Digitalmars-d-learn
mailing list