Re: How to get instance member value from getSymbolsByUDA

2022-02-26 Thread max haughton via Digitalmars-d-learn
On Saturday, 26 February 2022 at 17:06:06 UTC, Remi Thebault wrote: On Saturday, 26 February 2022 at 12:01:14 UTC, max haughton wrote: Getting the UDAs from inside a symbol must be done via a recursive procedure in the same manner one would identify the aforementioned symbol i.e. you have to

Re: How to get instance member value from getSymbolsByUDA

2022-02-26 Thread Remi Thebault via Digitalmars-d-learn
On Saturday, 26 February 2022 at 12:01:14 UTC, max haughton wrote: Getting the UDAs from inside a symbol must be done via a recursive procedure in the same manner one would identify the aforementioned symbol i.e. you have to go through the fields looking for UDAs *then* use getUDAs. This

Re: How to get instance member value from getSymbolsByUDA

2022-02-26 Thread max haughton via Digitalmars-d-learn
On Saturday, 26 February 2022 at 11:38:16 UTC, Remi Thebault wrote: On Saturday, 26 February 2022 at 11:26:54 UTC, max haughton wrote: On Saturday, 26 February 2022 at 10:39:18 UTC, Remi Thebault wrote: Hi all, I'm trying to establish a REST API by using the type system (used in both client

Re: How to get instance member value from getSymbolsByUDA

2022-02-26 Thread Remi Thebault via Digitalmars-d-learn
On Saturday, 26 February 2022 at 11:26:54 UTC, max haughton wrote: On Saturday, 26 February 2022 at 10:39:18 UTC, Remi Thebault wrote: Hi all, I'm trying to establish a REST API by using the type system (used in both client and server code). [...]

Re: How to get instance member value from getSymbolsByUDA

2022-02-26 Thread max haughton via Digitalmars-d-learn
On Saturday, 26 February 2022 at 10:39:18 UTC, Remi Thebault wrote: Hi all, I'm trying to establish a REST API by using the type system (used in both client and server code). [...] https://dlang.org/phobos/std_traits.html#getUDAs

How to get instance member value from getSymbolsByUDA

2022-02-26 Thread Remi Thebault via Digitalmars-d-learn
Hi all, I'm trying to establish a REST API by using the type system (used in both client and server code). Considering the code ```d struct Request { Method method; string url; int apiLevel; } @Request(Method.GET, "/my-resource/%s", 1) struct MyResourceGet { @Param