Discussion:
Runtime type information
andre via Digitalmars-d
2014-10-09 16:15:07 UTC
Permalink
Hi,

I just stubmled over an enhancement in object_.d and object.di
Benjamin Thaut described on his page:
http://3d.benjamin-thaut.de/?p=25#more-25.

The enhancement looks quite good and handy for me and would be a
quick win to have some more runtime type information in the
language.
Does it worth to create a pull request?

Kind regards
André
andre via Digitalmars-d
2014-10-10 14:49:04 UTC
Permalink
I just saw, there is also dip 8.

As a suggestion, instead of a compiler switch , we could
introduce an interface IPersistent. By implementing this
interface in your actual class, rtti would be available/generated.

What do You think?

Kind regards
André
Post by andre via Digitalmars-d
Hi,
I just stubmled over an enhancement in object_.d and object.di
http://3d.benjamin-thaut.de/?p=25#more-25.
The enhancement looks quite good and handy for me and would be
a quick win to have some more runtime type information in the
language.
Does it worth to create a pull request?
Kind regards
André
Dicebot via Digitalmars-d
2014-10-11 03:43:59 UTC
Permalink
Post by andre via Digitalmars-d
Hi,
I just stubmled over an enhancement in object_.d and object.di
http://3d.benjamin-thaut.de/?p=25#more-25.
The enhancement looks quite good and handy for me and would be
a quick win to have some more runtime type information in the
language.
Does it worth to create a pull request?
Kind regards
André
Hard to reason without actually looking at the code. Doing PR
does no harm if this is not much of a burden for you of course.

Continue reading on narkive:
Loading...