February 09, 2002
"Walter" <walter@digitalmars.com> wrote in message news:a42tcb$hrc$4@digitaldaemon.com...

> I understand. But some more syntax would be needed in the case where you want to map an interface onto an existing GUID.

Right. I remember Delphi had something like this:

    type
        IMalloc = interface(IInterface)
            ['{00000002-0000-0000-C000-000000000046}']
            ...
        end;

 In D it could be an attribute:

    guid(00000002-0000-0000-C000-000000000046)
    interface IMalloc
    {
    }


February 09, 2002
"Pavel Minayev" <evilone@omen.ru> wrote in message news:a4343e$l5c$1@digitaldaemon.com...
> "Walter" <walter@digitalmars.com> wrote in message news:a42tcb$hrc$4@digitaldaemon.com...
>
> > I understand. But some more syntax would be needed in the case where you want to map an interface onto an existing GUID.
>
> Right. I remember Delphi had something like this:
>
>     type
>         IMalloc = interface(IInterface)
>             ['{00000002-0000-0000-C000-000000000046}']
>             ...
>         end;
>
>  In D it could be an attribute:
>
>     guid(00000002-0000-0000-C000-000000000046)
>     interface IMalloc
>     {
>     }

neither looks right <g>


February 09, 2002
"Walter" <walter@digitalmars.com> wrote in message news:a43tq2$11uk$1@digitaldaemon.com...

> neither looks right <g>

Other ideas, then?


1 2 3
Next ›   Last »