CT-String as a Symbol

Vlad Levenfeld via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Apr 21 13:14:47 PDT 2015


On Tuesday, 21 April 2015 at 19:46:03 UTC, Nordlöw wrote:
> On Tuesday, 21 April 2015 at 07:46:03 UTC, Vlad Levenfeld wrote:
>> Then you throw in some more stuff to detect 1-dimensional 
>> cases.
>
> Could you please elaborate a bit?

Well assuming the type is not multidimensional (does not define 
opSlice!i) then testing for input range primitives or opIndex(0) 
is probably enough to conclude that a type is 1d.


More information about the Digitalmars-d-learn mailing list