Structs and Interfaces in COM Bindings
Adam Wilson via Digitalmars-d
digitalmars-d at puremagic.com
Sun May 18 18:06:01 PDT 2014
On Sun, 18 May 2014 17:48:45 -0700, Adam Wilson <flyboynw at gmail.com> wrote:
> Addendum:
>
> In the module Structs and Interfaces are wrapped with static if blocks
> in the following manner:
>
> static if(DX110)
> {
> //Enumerations
> }
> static if(DX111) { //...}
> static if(DX112) { //...}
>
> static if(DX110)
> {
> //Structs
> }
> static if(DX111) { //...}
> static if(DX112) { //...}
>
> static if(DX110)
> {
> //Interfaces
> }
> static if(DX111) { //...}
> static if(DX112) { //...}
>
> Could this be causing the problem, even if the struct and interface have
> matching static if qualifiers (in this case: DX110)?
>
I just tried moving the struct to the interfaces static if block and
surprisingly enough, it compiled. IIRC static if isn't supposed to
introduce a new scope. So I am definitely leaning towards bug. If so,
there goes my DConf demo...
--
Adam Wilson
GitHub/IRC: LightBender
Aurora Project Coordinator
More information about the Digitalmars-d
mailing list