Enums, typedefs and lowest common denominators
Dave
Dave_member at pathlink.com
Mon Nov 27 10:23:48 PST 2006
Stewart Gordon wrote:
>
> Something's puzzling here. I first noticed a problem when the SDWF
> example program MDI Edit stopped compiling. For the record, the error is:
> ----------
> mdiedit.d(284): function smjg.libs.sdwf.windowbase.WindowBase.style ()
> does not match parameter types (uint)
> mdiedit.d(284): Error: cannot implicitly convert expression
> (((cast(WindowBase)(this.editBox)).style)() | cast(ES)cast(WS)256u) of
> type uint to WS
> ----------
>
Take a look at http://d.puremagic.com/issues/show_bug.cgi?id=605
In the sample code, if the definition to struct sockaddr_in is commented out, all seems to work fine
w/o a cast.
Hopefully that will localize the bug enough for Walter to determine the cause.
More information about the Digitalmars-d
mailing list