Is it possible to store properties via opDispatch using tuples?
Jacob Carlborg
doob at me.com
Fri Jan 17 12:08:50 PST 2014
On 2014-01-17 18:49, H. S. Teoh wrote:
> Now I'm not sure if Variant allows assignment to a static type, but in
> theory this should be possible:
>
> // assume d.abc returns a Variant
> int x = d.abc; // will assert if d.abc doesn't hold an int at runtime
It doesn't work. Variant doesn't retain the static type, which is needed
in this case.
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list