Thread overview | ||||||
---|---|---|---|---|---|---|
|
August 17, 2001 Dynamic Invocation | ||||
---|---|---|---|---|
| ||||
The two features that set Java ahead of C++ (in my opinion) are:
1. A top level Object class (which D supports, yippee).
2. Dynamic Invocation. With Java I can, at runtime, find the class I
want, find the constructors/methods that I need and create an
appropriate object instance to handle types of input I have. This is an
extremely powerful feature that is useful in many different
applications. Especially when it's necessary to have an application
that is extensiable at at runtime. In order to support this, it obvious
that some kind of reflection/introspection interface is required. Is
this supported in D?
Otherwise looks pretty good. The contract stuff is quite nice.
--
Michael Barker
mbzzz@hotmail.com
|
August 18, 2001 Re: Dynamic Invocation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Barker, Michael [LON40:4751:EXCH] | Dynamic class loading is not supported, although there will be the capability of examining a type to see what properties it has. This is useful for garbage collection <g>. Barker, Michael [LON40:4751:EXCH] wrote in message <3B7CDECB.23116459@europem01.nt.com>... >The two features that set Java ahead of C++ (in my opinion) are: > >1. A top level Object class (which D supports, yippee). >2. Dynamic Invocation. With Java I can, at runtime, find the class I >want, find the constructors/methods that I need and create an >appropriate object instance to handle types of input I have. This is an >extremely powerful feature that is useful in many different >applications. Especially when it's necessary to have an application >that is extensiable at at runtime. In order to support this, it obvious >that some kind of reflection/introspection interface is required. Is >this supported in D? > >Otherwise looks pretty good. The contract stuff is quite nice. > >-- >Michael Barker >mbzzz@hotmail.com |
August 19, 2001 Re: Dynamic Invocation | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | Does that mean loading class through something like Dynamic Link Libraries (DLLs) is not possible? Walter <walter@digitalmars.com> wrote in message news:9lml50$10vj$2@digitaldaemon.com... > > Dynamic class loading is not supported, although there will be the capability of examining a type to see what properties it has. This is useful > for garbage collection <g>. > |
August 19, 2001 Re: Dynamic Invocation | ||||
---|---|---|---|---|
| ||||
Posted in reply to interested | DLLs are entirely possible. It's just that types are fixed at compile time. interested wrote in message <9lnfsi$1gb9$1@digitaldaemon.com>... > >Does that mean loading class through something like Dynamic Link Libraries >(DLLs) is not possible? > >Walter <walter@digitalmars.com> wrote in message news:9lml50$10vj$2@digitaldaemon.com... >> >> Dynamic class loading is not supported, although there will be the capability of examining a type to see what properties it has. This is >useful >> for garbage collection <g>. >> > > > |
Copyright © 1999-2021 by the D Language Foundation