January 10, 2002 [bug] interfaces and objects | ||||
---|---|---|---|---|
| ||||
It seems that D doesn't like it when objects are passed to interface methods. For example, this hangs the compiler: interface IPersistent { void store(Object); void retrieve(Object); } class Persistent: IPersistent { void store(Object n) { } void retrieve(Object n) { } } But change the arguments from Object to int, and everything works fine! |
January 10, 2002 Re: [bug] interfaces and objects | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pavel Minayev | This is fixed now, will go out in the next update. -Walter "Pavel Minayev" <evilone@omen.ru> wrote in message news:a1koso$kvn$1@digitaldaemon.com... > It seems that D doesn't like it when objects are > passed to interface methods. For example, this hangs > the compiler: > > interface IPersistent > { > void store(Object); > void retrieve(Object); > } > > class Persistent: IPersistent > { > void store(Object n) { } > void retrieve(Object n) { } > } > > But change the arguments from Object to int, and > everything works fine! > > |
Copyright © 1999-2021 by the D Language Foundation