Jonathan Blow demo #2

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Dec 12 12:46:30 PST 2014


On 12/12/2014 1:58 AM, bearophile wrote:
> My point was to optionally define built-in arrays with a strongly typed indexing
> (where the strongly typed index can be defined with a better version of
> Typedef!()), as I've tried to explain in that post.

All you have to do is define your own array type as a struct wrapper around an 
array, then overload the [] operator. No need for new language features.



More information about the Digitalmars-d mailing list