February 09, 2002 Re: Feature of Objective C, save&restore | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | "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 Re: Feature of Objective C, save&restore | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pavel Minayev | "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> |
Copyright © 1999-2021 by the D Language Foundation