Re: BetterC and TypeInfo Question

2018-07-10 Thread ARaspiK via Digitalmars-d-learn
On Friday, 23 June 2017 at 04:03:04 UTC, Adam D. Ruppe wrote: On Friday, 23 June 2017 at 02:49:27 UTC, Mike wrote: My approaches are right now for -betterC to be a filthy hack to get it working quick, and I still have a bunch of ways I want to improve the implementation and compiler interface

Re: BetterC and TypeInfo Question

2017-06-22 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 23 June 2017 at 02:49:27 UTC, Mike wrote: I'm not sure what you have in mind, but TypeInfo in itself is not bad and has some very useful features even for resource constrained devices and other niche domains. Yeah, I agree with you. My approaches are right now for -betterC to be a

Re: BetterC and TypeInfo Question

2017-06-22 Thread Mike via Digitalmars-d-learn
On Friday, 23 June 2017 at 02:14:08 UTC, Adam D. Ruppe wrote: Yes, it is necessary, but how much? Can we do it with implicitly generated library code? I'm pretty sure the answer is "not much" and "yes", but I still need to ponder the details. I think the typeinfo for a class good enough for

Re: BetterC and TypeInfo Question

2017-06-22 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 23 June 2017 at 00:41:11 UTC, sarn wrote: Does it matter? C++ programmers already accept that RTTI is needed for certain dynamic features. Yes, it is necessary, but how much? Can we do it with implicitly generated library code? I'm pretty sure the answer is "not much" and "yes",

Re: BetterC and TypeInfo Question

2017-06-22 Thread sarn via Digitalmars-d-learn
Currently a lot of language features generate dependencies on TypeInfo, arguably more than needed, but this is changing. Some examples are in this DConf 2017 talk: https://www.youtube.com/watch?v=endKC3fDxqs Also, the way the language is designed right now, all modules are responsible for

Re: BetterC and TypeInfo Question

2017-06-22 Thread jmh530 via Digitalmars-d-learn
On Thursday, 22 June 2017 at 14:50:45 UTC, Adam D. Ruppe wrote: [snip] I appreciate the reply.

Re: BetterC and TypeInfo Question

2017-06-22 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 22 June 2017 at 14:30:31 UTC, jmh530 wrote: I was looking through the C++ standard library headers and noticed that has a typeid also. One difference with D is that it is opt-in as there is some cost using it. C++ also leaves most the properties for typeinfo to be

BetterC and TypeInfo Question

2017-06-22 Thread jmh530 via Digitalmars-d-learn
I should preface this by saying I don't really have a good sense of how either BetterC or the D runtime work. The recent BetterC thread made me wonder about TypeInfo in the D runtime. My (surface level) understanding is that this is what makes typeid work at run time. I was looking through