BitArray/BitFields - Review

Jonathan M Davis jmdavisProg at gmx.com
Sat Jul 28 13:57:26 PDT 2012


On Saturday, July 28, 2012 22:41:48 Era Scarecrow wrote:
> 2) opCast disabled: Anyone using opCast their code will break,
> however depending on it's usage that may not be an issue. If
> anyone can recommend alternative opCast(s) that won't prevent
> normal use of casting, then they will be reimplemented.

I'm not particularly familar with BitArray, so I don't know what its opCast 
would convert to, but opCast will only convert to the types that you let it, 
so if you need to constrain what types it works with, then use template 
constraints to do that. If, on the other hand, opCast just doesn't make any 
sense at all, then just don't have it.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list