Re: describe-d: an introspection library

2020-04-22 Thread Jean-Louis Leroy via Digitalmars-d-announce
On Wednesday, 22 April 2020 at 17:32:33 UTC, Stefan Koch wrote: It's going to be part of the compiler. You can look at the ... expression DIP. which Manu posted in General, for taste of where my stuff is going. I think I see the point - I am familiar with C++ variadic templates. Yes,

Re: describe-d: an introspection library

2020-04-22 Thread Stefan Koch via Digitalmars-d-announce
On Wednesday, 22 April 2020 at 17:27:48 UTC, Jean-Louis Leroy wrote: On Wednesday, 22 April 2020 at 17:16:28 UTC, Stefan Koch wrote: I am working on a much more powerful and efficient meta programming system. Great! Is it going to be in a library, or part of the compiler? Can we get a

Re: describe-d: an introspection library

2020-04-22 Thread Jean-Louis Leroy via Digitalmars-d-announce
On Wednesday, 22 April 2020 at 17:16:28 UTC, Stefan Koch wrote: I am working on a much more powerful and efficient meta programming system. Great! Is it going to be in a library, or part of the compiler? Can we get a preview somewhere?

Re: describe-d: an introspection library

2020-04-22 Thread Stefan Koch via Digitalmars-d-announce
On Wednesday, 22 April 2020 at 13:32:03 UTC, Jean-Louis Leroy wrote: I tried compiling my example with `dmd -vcg-ast -c tmt.d` and I did got neither an AST nor an error, and the option is not in `dmd -h`, where can I read about it? -vcg-ast is a debugging tool I original built to fix an bug

Re: describe-d: an introspection library

2020-04-22 Thread Jean-Louis Leroy via Digitalmars-d-announce
On Wednesday, 22 April 2020 at 05:20:18 UTC, Stefan Koch wrote: On Tuesday, 21 April 2020 at 14:43:04 UTC, Jean-Louis Leroy wrote: I wonder if templates are lazily expanded. I haven't looked at the compiler's code, my guess is: maybe not. If the template gets used it gets instantiated (and

Re: describe-d: an introspection library

2020-04-21 Thread Stefan Koch via Digitalmars-d-announce
On Tuesday, 21 April 2020 at 14:43:04 UTC, Jean-Louis Leroy wrote: I wonder if templates are lazily expanded. I haven't looked at the compiler's code, my guess is: maybe not. If the template gets used it gets instantiated (and cached). if not than not. you can use the -vcg-ast switch to look

Re: describe-d: an introspection library

2020-04-21 Thread Jean-Louis Leroy via Digitalmars-d-announce
On Wednesday, 15 April 2020 at 08:00:12 UTC, bogdan wrote: I use a similar approach in openmethods. With the added twist that I need to re-create functions from existing functions, with some modifications (e.g. change the parameter types, add a parameter), while preserving function and

Re: describe-d: an introspection library

2020-04-15 Thread bogdan via Digitalmars-d-announce
On Tuesday, 14 April 2020 at 10:55:13 UTC, WebFreak001 wrote: On Monday, 13 April 2020 at 12:11:03 UTC, bogdan wrote: Hi! I wrote this small `describe-d` library to allow me to do more readable introspection in some of my projects. Any feedback is appreciated! Thanks, Bogdan [1]

Re: describe-d: an introspection library

2020-04-14 Thread WebFreak001 via Digitalmars-d-announce
On Monday, 13 April 2020 at 12:11:03 UTC, bogdan wrote: Hi! I wrote this small `describe-d` library to allow me to do more readable introspection in some of my projects. Any feedback is appreciated! Thanks, Bogdan [1] https://gitlab.com/szabobogdan3/describe-d [2]

describe-d: an introspection library

2020-04-13 Thread bogdan via Digitalmars-d-announce
Hi! I wrote this small `describe-d` library to allow me to do more readable introspection in some of my projects. Any feedback is appreciated! Thanks, Bogdan [1] https://gitlab.com/szabobogdan3/describe-d [2] https://code.dlang.org/packages/describe-d