|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
digitalmars.D - ABI Stability?
I've been thinking about the Java Reflection API and how useful it can be to change the behavior of an application during runtime. Even though no such API exists right now for D, I've been looking at the D ABI page ( http://www.digitalmars.com/d/abi.html ) and thinking that it wouldn't be difficult for a third-party developer to write a reflection API using the information from the object's classinfo property and vtable. Even though much of the ABI is still marked as TBD, if the ABI is anticipated to remain relatively stable, it would be possible to build the reflection interface just by referring to the object.d code in phobos. Though, even if it would currently be possible to produce a reflection API using this information, it wouldn't be worth the effort if the ABI isn't set in stone yet. So, Walter, how stable is the ABI right now? --Benji Smith Dec 20 2004
"Benji Smith" <dlanguage xxagg.com> wrote in message news:r2ses0t5bn16p40lv21d548dkph4c67p0h 4ax.com...I've been thinking about the Java Reflection API and how useful it can be to change the behavior of an application during runtime. Even though no such API exists right now for D, I've been looking at the D ABI page ( http://www.digitalmars.com/d/abi.html ) and thinking that it wouldn't be difficult for a third-party developer to write a reflection API using the information from the object's classinfo property and vtable. Even though much of the ABI is still marked as TBD, if the ABI is anticipated to remain relatively stable, it would be possible to build the reflection interface just by referring to the object.d code in phobos. Though, even if it would currently be possible to produce a reflection API using this information, it wouldn't be worth the effort if the ABI isn't set in stone yet. So, Walter, how stable is the ABI right now? Dec 20 2004
In article <r2ses0t5bn16p40lv21d548dkph4c67p0h 4ax.com>, Benji Smith says...Though, even if it would currently be possible to produce a reflection API using this information, it wouldn't be worth the effort if the ABI isn't set in stone yet. Dec 21 2004
On Tue, 21 Dec 2004 15:34:42 +0000 (UTC), pragma <pragma_member pathlink.com> wrote:I think you're on the right track with coding against the ABI. A preprocessor would be the best approach, IMO, as there's only so much information you can gather from within D at this point. Dec 21 2004
|