Table lookups - this is pretty definitive

Brad Anderson eco at gnuk.net
Wed Apr 2 12:44:26 PDT 2014


On Tuesday, 1 April 2014 at 22:32:28 UTC, bearophile wrote:
> Eventually this should work, and avoid the nasty cast:
>
> immutable bool[256] tab3 =
>     ubyte
>     .max
>     .iota!"[]"

I can't decide if this part is brilliant or terrible. Clever, 
either way.


More information about the Digitalmars-d mailing list