September 23, 2004
"Carlos Santander B." <carlos8294@msn.com> wrote in message news:citg4t$c1p$1@digitaldaemon.com...
> Did something change regarding casting? I can't send a bug report because there're just so many things to reduce it (including the use of mixins),
but I
> something like this used to compile:
>
> void foo(void * x) { ... }
> class A
> {
>     void bar () {
>         foo( cast(void*) this );
>     }
> }
>
> (this trimmed down example actually compiles, but the real one doesn't) Now I get "can't cast from A to void *". Did something change?

In 0.99, implicit casts to void were removed.



September 23, 2004
"Walter" <newshound@digitalmars.com> escribió en el mensaje
news:civ4sg$1tjl$2@digitaldaemon.com
| "Carlos Santander B." <carlos8294@msn.com> wrote in message
| news:citg4t$c1p$1@digitaldaemon.com...
|| Did something change regarding casting? I can't send a bug report because
|| there're just so many things to reduce it (including the use of mixins),
| but I
|| something like this used to compile:
||
|| void foo(void * x) { ... }
|| class A
|| {
||     void bar () {
||         foo( cast(void*) this );
||     }
|| }
||
|| (this trimmed down example actually compiles, but the real one doesn't)
|| Now I get "can't cast from A to void *". Did something change?
|
| In 0.99, implicit casts to void were removed.

But this is to void *, and it compiled until 0.101

-----------------------
Carlos Santander Bernal


September 23, 2004
"Walter" <newshound@digitalmars.com> wrote in message news:ciqo2o$i1p$1@digitaldaemon.com...
> I haven't gotten very far with the MIID list yet, this is mostly just compiler bugs. I'm going to be out for a few days, and I wanted to get
this
> out first.
>
> http://www.digitalmars.com/d/changelog.html
>
>

zlib uncompress seems to work fine. THX!



1 2
Next ›   Last »