[dmd-internals] Type-checked arrays!

Michel Fortin michel.fortin at michelf.com
Tue Jul 5 16:46:09 PDT 2011


Le 2011-07-05 à 18:52, Walter Bright a écrit :

> I've always thought it should be done with a template:
> 
>   typedef ArrayOf<Expression> Expressions;

Well, now that I know I can change it to a template.

When I asked a mid-June on this list, I did not get an answer. I decided to go take the most conservative route and not use any C++ feature not already in use elsewhere in the code.

If you say it's okay to use templates then I'll make the change, it's no big deal. I agree it'd be a little cleaner that way, although with typedefs it won't change things much.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/





More information about the dmd-internals mailing list