base class function hiding
Bill Baxter
dnewsgroup at billbaxter.com
Sat Oct 13 12:59:24 PDT 2007
Manfred Nowak wrote:
> bc wrote
>
>> must have an opIndex with variable number of arguments up to the
>> number of dimensions
>
> What's wrong with
> void opIndex(size_t[] arg ...)
>
> -manfred
>
*) No compile-time check on exceeding the valid number of arguments.
*) the return type shouldn't be "void" but an N-nargs (N minus
args.length) dimensional array. Since N is a template parameter, each
function must return a different type.
--bb
More information about the Digitalmars-d-learn
mailing list