Dynamic alter-ego of D.
deadalnix
deadalnix at gmail.com
Wed Oct 26 07:19:36 PDT 2011
Le 25/10/2011 17:39, Gor Gyolchanyan a écrit :
> That's the point. You don't always need to carry around your type.
> Also because you might do it in a specific and very efficient way.
> Imposing a single way of storing the type is a very inflexible decision.
> The type check may also be done at different points, after which it's
> not necessary to carry around.
> Also, as i said before, type checking WILL be done in debug mode and
> dropped in release mode.
> Variant could be built on that typeless value concept to ensure type
> safety at all times.
>
Well I don't kbnow how you can handle type safety on a non typed
variable. That doesn't make sense to me.
What you want to to will end-up to be more complicated than Variant, but
without the garanty that strong typing gives you. You'll losse on every
facelets of the problem.
More information about the Digitalmars-d
mailing list