Re: Does D have a way to get and pass sturct information at runtime?

2025-06-16 Thread rempas via Digitalmars-d-learn
On Monday, 16 June 2025 at 08:41:57 UTC, Dmitry Olshansky wrote: On Monday, 16 June 2025 at 07:30:31 UTC, rempas wrote: So, I wanted to create a library to allow D to be used a scripting language, in order to allow it to be used to configure programs. Now, the design of everything is rather si

Re: Does D have a way to get and pass sturct information at runtime?

2025-06-16 Thread rempas via Digitalmars-d-learn
On Monday, 16 June 2025 at 08:45:20 UTC, Dejan Lekic wrote: I assume you are not happy with RDMD ( https://dlang.org/rdmd.html ) ?? If my assumption is correct, may I ask why? Or, do you want to have a REPL? If so, Martin Nowak implemented one many years ago: https://github.com/dlang-community

Re: Does D have a way to get and pass sturct information at runtime?

2025-06-16 Thread Dejan Lekic via Digitalmars-d-learn
On Monday, 16 June 2025 at 07:30:31 UTC, rempas wrote: So, I wanted to create a library to allow D to be used a scripting language, in order to allow it to be used to configure programs. Now, the design of everything is rather simple. However, I do have one problem. Is there a way to pass I a

Re: Does D have a way to get and pass sturct information at runtime?

2025-06-16 Thread Dmitry Olshansky via Digitalmars-d-learn
On Monday, 16 June 2025 at 07:30:31 UTC, rempas wrote: So, I wanted to create a library to allow D to be used a scripting language, in order to allow it to be used to configure programs. Now, the design of everything is rather simple. However, I do have one problem. Is there a way to pass runt

Does D have a way to get and pass sturct information at runtime?

2025-06-16 Thread rempas via Digitalmars-d-learn
So, I wanted to create a library to allow D to be used a scripting language, in order to allow it to be used to configure programs. Now, the design of everything is rather simple. However, I do have one problem. Is there a way to pass runtime information of a struct, to the compiler that will c