On Wednesday, 8 December 2021 at 17:44:47 UTC, Adam D Ruppe wrote:
On Wednesday, 8 December 2021 at 17:19:32 UTC, Ben Jones wrote:

Gotcha, thanks. I tried using `S.field` before and that didn't work, `__traits(child)` was the key.

Since I reuse the field a few times I tried to alias the result:

`alias theProp = __traits(child, s, field);`

But everywhere I use `theProp` I get the same error as before (need this...). Is there a way to avoid using the full `__traits(child)` expression everywhere?

Reply via email to