More D newb questions.

Janice Caron caron800 at googlemail.com
Tue May 6 21:42:51 PDT 2008


On 06/05/2008, Me Here <p9e883002 at sneakemail.com> wrote:
> Hm. I'm not sure. Would this work now: f( [ a, b ] ); ?

That's a red herring: Literal syntax has never been available to
custom types. But if you wanted, you could always overload static
opIndex(), and then you'd be able instead to do

    f( MyArray[ a, b ] );



More information about the Digitalmars-d mailing list